andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
Hello all,
I tried using the macro recorder for this, but only got partially what I wanted. Here's my code:
Basically, I am copying a cell range to a new sheet, however I need to only copy the visible cells. and not the entire range. Can that be done?
I tried using the macro recorder for this, but only got partially what I wanted. Here's my code:
Code:
Sub test222() Range("D6:D23").Select
Selection.Copy
Sheets("test zone").Select
Range("C5").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=True, Transpose:=False
Range("I22").Select
End Sub
Basically, I am copying a cell range to a new sheet, however I need to only copy the visible cells. and not the entire range. Can that be done?