Hi there,
A while ago I created a very simple excel worksheet that opened up another more complicated excel workbook (master document) un-protected the document and "un-hid" specific sheets and then allowed the user to copy inputted data over to the other workbook. It would then allow the user at the touch of a button to re-protect the document and hide all the specific sheets etc.
Basically it allowed members of my team to input data into a master document without the risk of them screwing the master document up. Shhh don't tell them I said that!
The macros behind all that is below:
Now all that works fine....up until now! The above is all well and good as the document I am copying data into is a constant "Claim_v3.xls" and in a constant location. I now need to be able to select the document I wish to "Inject" into as a variable.
So....the "START INJECTOR" Macro needs to allow me to Open up any workbook using Windows explorer and browse and select the specific file. The password of the file to be opened will be constant as will the cell ranges that are being copied from and to. Just the name will change.
I will need the following code somewhere in the "START INJECTOR" macro:
But I don't know where to put it for a start and then how do make every referal in my current code to "Claim_v3.xls" actually refer to the workbook that has been opened.
Hopefully that makes sense. Thankyou in advance.
Regards
Geff
Bookmarks