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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy & PasteSpecial in VBA

Status
Not open for further replies.
Dec 23, 2004
33
US
I saw the following copy/paste was done in one line code in this post:

Range("A1").Select
Selection.Copy
Range("B1").Select
Selection.Paste
---------------------------------
Range("A1").copy range("B1")

Can it work for PasteSpecial - value?

Thanks.
 
Hi,

Note that with PasteSpecial there are DEFAULT values for properties...
Code:
Range("A1").copy 
range("B1").PasteSpecial xlPasteValues



Skip,

[glasses] [red]Be advised:[/red] When you ignite a firecracker in a bowl of vanilla, chocolate & strawberry ice cream, you get...
Neopolitan Blownapart! [tongue]


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top