Hello,
I am using the undernoted code to copy data from one sheet to other but the code copies all rows and columns to the new sheet. I want to copy only visible cells, please help me modify the code.
I am using the undernoted code to copy data from one sheet to other but the code copies all rows and columns to the new sheet. I want to copy only visible cells, please help me modify the code.
Code:
Sub Summarize()
Range("A1:EB62").Select
Selection.Copy
Sheets("Print").Select
Range("A1").Select
lMaxRows = Cells(Rows.Count, "A").End(xlUp).Row
Range("A" & lMaxRows + 1).Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range("A1").Select
End Sub