Try this - amend file name, path, worksheet names
![]()
Please Login or Register to view this content.
Last edited by kev_; 04-14-2017 at 09:17 AM.
Click *Add Reputation to thank those who helped you. Ask if anything is not clear
Thank you very much ! It works !
However, if my workbook (FileToPasteTo) is already open, then the macro gives me an error.
Can this be fixed ?
Try amended VBA below
If the file is already open you may not want to close it
replace
with![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Thanks again !
Now I get the warning that the Workbook "FileToPasteTo" is already open and that re-opening it might cause loss of data. I do not want to re-open it, if it is already open. I want to paste in in the open workbook. If it isnt open, then the Macro should open it.
Please paste your code into reply
Then select the whole code and click on # icon (to include code tags)
thanks
![]()
Please Login or Register to view this content.
btw, Cheers to CornwallWe always loved it there, esp. Mawgan Porth
Duh, i think i found the error ! My bad !
had to be replaced with my workbook name![]()
Please Login or Register to view this content.
thanks muchly kev_
You are welcome and of, course welcome to visit Cornwall again
Thanks for the rep
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks