wahrscheinlich mache ich ein ganz banalen Anfängerfehler, ich möchte eigentlich nur in einer Tabelle, exemplarisch die gefilterten sichtbaren Zellen
von Spalte A in Spalte B kopieren, diese sollten jedoch nebeneinander stehen :-) ... zuvor sollten jedoch alle Werte aus Spalte B gelöscht werden.
Kann mir jemand weiterhelfen. Vielen Dank
https://www.herber.de/bbs/user/156586.xlsm
ich hab mal so angefangen...., funktioniert aber nicht :-(
Sub Formel()
Dim iRow As Integer
iRow = ThisWorkbook.Worksheets("Tabelle1").Cells(Rows.Count, 1).End(xlUp).Row
With ThisWorkbook.Worksheets("Tabelle1")
.Range("B2:B" & iRow).ClearContents
.Range("A2:A" & iRow).Copy
.Range("B2:B" & iRow).PasteSpecial Paste:=xlPasteValues
End With
Application.CutCopyMode = False
End Sub
Sub Kopieren()
Dim iRow As Integer
iRow = ThisWorkbook.Worksheets("Tabelle1").Cells(Rows.Count, 1).End(xlUp).Row
With ThisWorkbook.Worksheets("Tabelle1")
.Range("B2:B" & iRow).ClearContents
.Range("A2:A" & iRow).Cells.SpecialCells(xlCellTypeVisible).Copy
.Range("B2:B" & iRow).PasteSpecial Paste:=xlPasteValues
End With
Application.CutCopyMode = False
End Sub