ich habe mal wieder ein Problem.
Wie kann ich eine Zeile kopieren, wenn in der Tabelle Spalten ausgeblendet sind.
Mit
With Rows(zz)
.Copy
.Insert Shift:=xlDown
end with
wird nur eine Leerzeile eingefügt.
Danke im voraus.
Günter
Sub Makro2()
With Rows("2:2")
.Copy
.Insert Shift:=xlDown
End With
End Sub
Gruß Matthias
zz = Val(zx)
With Rows(zz)
.Copy
.Insert Shift:=xlDown
Rows(zz + 1).Hidden = False
End With
GreetZ Renée
Sub test()
zz = Selection.Row
With Rows(zz)
.Copy
.Insert Shift:=xlDown
Rows(zz + 1).Hidden = False
End With
End Sub
Fügt leere Zeile ein!
Was mache ich falsch?
Danke im voraus!
Günter
Sub Dupl_gefilterte2()
Dim zz As Long, ss As Long
Application.ScreenUpdating = False
For zz = Selection.Row + Selection.Rows.Count - 1 To Selection.Row Step -1
With Rows(zz)
If Not .Hidden Then
.Insert Shift:=xlDown
For ss = 1 To Cells(zz + 1, Columns.Count).End(xlToLeft).Column
Cells(zz + 1, ss).Copy Cells(zz, ss)
Next ss
End If
End With
Next zz
Application.ScreenUpdating = True
End Sub
Rückmeldung wäre nett! - Grüße von Erich aus Kamp-Lintfort
Sub test()
Dim zz As Long
Dim sp As Long, i As Long
zz = Selection.Row
With Rows(zz)
.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromRightOrBelow
sp = ActiveSheet.UsedRange.Column
For i = sp To sp - 1 + ActiveSheet.UsedRange.Columns.Count
Cells(zz, i).FormulaR1C1 = Cells(zz + 1, i).FormulaR1C1
Next
End With
End Sub
Gruß, Daniel