Hi, I have an excel template that I use every day.. pretty much the same routine.. Update the date field, make the necessary changes, attach it to an email.
I thought it'd be nice to create a bit of VBA code to do the routine stuff, so I did.
I have added a button on my toolbar which has assigned the one macro that takes care of updating the date cell
I have another button that I click when I'm done with the document. This buttons is assigned another macro which grabs some information from the current worksheet, and fills in some information on the email... just ready for me to select a recipient.
All the macros and VBA code is stored in the template (.xlt) that I create each worksheet with. But here is the problem
When I click these buttons, Excel opens the last document I created and runs the macros off there rather than the template that I'm running.
Can anyone suggest a way to pull this off?
Thanks in advance
I thought it'd be nice to create a bit of VBA code to do the routine stuff, so I did.
I have added a button on my toolbar which has assigned the one macro that takes care of updating the date cell
I have another button that I click when I'm done with the document. This buttons is assigned another macro which grabs some information from the current worksheet, and fills in some information on the email... just ready for me to select a recipient.
All the macros and VBA code is stored in the template (.xlt) that I create each worksheet with. But here is the problem
When I click these buttons, Excel opens the last document I created and runs the macros off there rather than the template that I'm running.
Can anyone suggest a way to pull this off?
Thanks in advance