Hello, I am trying to use the following macro but it keeps returning an error due to the name change. Can anyone point me in the right direction?
Thank you for any help in advancePlease Login or Register to view this content.
Hello, I am trying to use the following macro but it keeps returning an error due to the name change. Can anyone point me in the right direction?
Thank you for any help in advancePlease Login or Register to view this content.
Last edited by simjambra; 08-13-2010 at 03:55 AM.
In VBA, problems are reduced when you reference your workbooks and sheets by variable instead of hardcoding, wherever possible.
Also, selecting and activating can be reduced to a minimum. In VBA, once you have workbk and worksh identified, you can address your commands to them directly by using a complete reference command.
This shows how to use the workbook the macro is installed into as a variable workbook reference without ever knowing what the name of the workbook is, then how to copy sheets using that variable...without activating/selecting first.
Please Login or Register to view this content.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
Thanks very much indeed for your help
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks