Originally Posted by
lucas
You can copy the visible cells after a filter using
[vba]
SpecialCells(xlCellTypeVisible)
[/vba]
You can copy the data to a different cell and then concatenate it.
If you provide a little more info or a sample file maybe someone can offer more assistance.
This is the code I have. It don't work. So on the Data sheet, the column headings are in row 5, so then first I do an autofilter, then I go to column H and then copy the items in the autofilter list. Then I paste it to the cell A2 on the Summary sheet but it don't work.
Private Sub automatic_event()
Dim ms As Worksheet
Dim ms1 As Worksheet
Set ms = Worksheets("Details")
With ms.Range.Rows("5:5")
.AutoFilter = True
ms.Range(Cells(5, h)).SpecialCells(xlCellTypeVisible).SpecialCells(xlCellTypeConstants, 1).Copy
Set ms1 = Worksheets("Summary")
ms1.Cells(2, 1).PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End With
End Sub