Re: Using "Paste" Method in VBA
- From: "Don Guillett" <dguillett1@xxxxxxxxxxxxx>
- Date: Mon, 26 Nov 2007 15:14:17 -0600
try this idea that does not do values only
Sheets("Val").Range("BE19:BE66").Copy _
Sheets("Save_Scen").Range("H124")
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@xxxxxxxxxxxxx
"needVBAhelp" <needVBAhelp@xxxxxxxxxx> wrote in message news:5E2E65C2-8CBA-4BB3-8C1F-310528F2D57D@xxxxxxxxxxxxxxxx
I have a VBA program that uses both "PasteSpecial" and "Paste" Methods.
I have no problem using the "PasteSpecial" Method as follows:
Sheets("Val").Range("BE19:BE66").Copy
Set MyRangePaste = Sheets("Save_Scen").Range("H124")
MyRangePaste.PasteSpecial Paste:=xlValues, Operation:=xlNone,
SkipBlanks:= _
False, Transpose:=False
I get an "Object doesn't support this property or object" error message,
however, when I try to use the following that looks to me like a comparable
command for the "Paste" method:
Sheets("Val").Range("BE19:BE66").Copy
Set MyRangePaste = Sheets("Save_Scen").Range("H124")
MyRangePaste.Paste
I would like to use the "Paste" method without "Selecting" a work***. How
can I do this in a manner comparable to the above approach that I am using
for the "PasteSpecial" method?
Thanks much for any help.
--
needVBAhelp
.
- Prev by Date: Re: With excel 2003 could open .csv file but not in excel 2007.
- Next by Date: Re: Load a File Error 9
- Previous by thread: copying
- Next by thread: RE: Using "Paste" Method in VBA
- Index(es):