This code copies only the visible cells in the selected range.
VBA Code:
Sub CopyVisibleCellsOnly()
Selection.SpecialCells(xlCellTypeVisible).Copy
End Sub
This code copies only the visible cells in the selected range.
VBA Code:
Sub CopyVisibleCellsOnly()
Selection.SpecialCells(xlCellTypeVisible).Copy
End Sub