I have a routine that reduces a large monthly data set, then parses the data into individual workbooks (each month on a separate tab) for a number of different departments. The workbooks are stored online in a common directory for each department to access and update.
In order to improve things, management wants each department to certify they have reviewed and updated the data. I've programmed a form button (as opposed to an activex button) that the user can click when they have completed their data which will send me an e-mail certification.
I've put the e-mail code into the "ThisWorkbook" sheet of each department's workbook. The expectation is that the pointer to the e-mail code will be to the local copy in each department's workbook when the
command is generated for each month in each workbook.
The code works as advertised except that the command "
= "ThisWorkbook.CertifyEmail" always tries to reference my source code, not the local department copy” (On my machine, my source code opens and runs the e-mail routine without issue - obviously I can't have my users accessing my master file)
Here’s the code that generates the button on each month’s worksheet within each department’s file:
Any suggestions how to get the OnAction command to reference the local code in each department's workbook?
Art
Bookmarks