Hello,
I'm using the code to copy data from a sheet to another and at the same time copy it to a new workbook however it's not working always an error. Please advice, than you in advanced.
Please Login or Register to view this content.
Hello,
I'm using the code to copy data from a sheet to another and at the same time copy it to a new workbook however it's not working always an error. Please advice, than you in advanced.
Please Login or Register to view this content.
Where is the error (which line is highlighted), what does the error message say and explain what you want to do.
The line highlighted is "MYDATA.Save"
Compile error: Method or data member not found
You are assigning the variable to Workbook Collection.
Try get rid of "s".
Please Login or Register to view this content.
Didn't solve the problem
Does it actually paste in DATABOOK2? You don't open it anywhere that I can see.
Maybe this line
should bePlease Login or Register to view this content.
Is this the line you have in your code?Please Login or Register to view this content.
Do you have a "USER" in C:\Users? Or is it your name?Please Login or Register to view this content.
I've modified the code now thanks to @jolivanes I added the Open tag however the error highlighted now
"Range("A5:K4005").PasteSpecial"
It's not pasting in this range, actually it should be from A5-A4005 to K5-K4005.
Did you see what the excel vba help says about pastespecial?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks