Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you copy cells with data only in a range? 1

Status
Not open for further replies.

coolcarls

Technical User
Jan 19, 2002
182
US
I would like to copy only the cells that contain data in a selected range, and ignore cells with either a zero value or that contain nothing at all, is it possible?
Thanks in advance
 
Here's an example:
Range("A1:A5").Copy
Range("B1").PasteSpecial Paste:=xlAll, Operation:=xlNone, _
SkipBlanks:=True, Transpose:=False
 
Oops. I answered your subject line and not your post. The example I gave only works if the cells don't have data in them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top