I generate workbooks for the timesheets of each staff member from a master workbook. This generated workbook contains some macros. Whenever I add/update the macros they are available for the staff in the following month only. I was wondering if there could be a system wherein each of the generated workbook contains a caller macro which calls a central macro in a file residing on the server so that any changes done during the month are immediately affected to all workbooks.
PS: All macros are event-fired. None of them are user-invoked. The events at the moment are worksheet_change and worksheet_selectionchange but may have to be expanded.
Microsoft Excel
Last Comment
Saqib Husain
8/22/2022 - Mon
Rgonzo1971
Hi,
you could create an XL add-in with all procedures
refer all the events to the add-in subs, for the ones you don't yet use, keep an empty sub
to call the add-in
Sub MyTest() Application.Run ("myaddin.xla!mySelectionChange") End Sub
Is there a way for a macro to install/update the addin? I do not want to go myself to install the addin on all computers. Some people bring their own laptop and I might not be available to do the installation.
Hi, Thanks for the effort. The looks are now good. But it is going to take e some time to test it. Please bear with me while I get the time to test it.
you could create an XL add-in with all procedures
refer all the events to the add-in subs, for the ones you don't yet use, keep an empty sub
to call the add-in
Open in new window
Regards