|
-
Aug 24th, 2008, 05:11 PM
#1
Thread Starter
Member
VB for Excel:"paste"
I am using VB for Excel. I want to copy from a file and paste in another file.
I open the first file and write
Sheet.application.worksheets("Sheet1").range("A1:E1").select
Sheet.application.worksheets("Sheet1").range("A1:E1").copy
Then I open the second file (closing or not the first file does not make a difference) and write
Sheet.application.worksheets("Sheet1").range("A1:E1").select
Sheet.application.worksheets("Sheet1").range("A1:E1").paste
It gives me ERROR at the last line, it does not accept "paste". I tried all possible changes. Any help?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|