Hi Everyone,
I am a real beginner when it comes to VBA so I need your help! I am reading Mr Excel's book on VBA and Macros but I cannot find a solution to the problem below.
Any suggestions on how to do the following?
Is there a way to identify the workbook in which you start the macro as a variable, and then reference that variable in the copy worksheet code? That way the code should work no matter what WORKBOOK(*) is named.
Thanks for your help with this!!!!
Allen
I am a real beginner when it comes to VBA so I need your help! I am reading Mr Excel's book on VBA and Macros but I cannot find a solution to the problem below.
Any suggestions on how to do the following?
- The macro will be applied to an open workbook, lets call that WORKBOOK(*), as the name applies the workbook name will change between uses.
- One of the first steps is to open a workbook off the network that contains a reference sheet, WORKBOOK2, this I can do
- In WORKBOOK2 is the worksheet called REFSHEET
- I need to copy REFSHEET into WORKBOOK(*)
Is there a way to identify the workbook in which you start the macro as a variable, and then reference that variable in the copy worksheet code? That way the code should work no matter what WORKBOOK(*) is named.
Thanks for your help with this!!!!
Allen