Hi there,
See if the following approach gets you moving in the right direction - it requires a Reference to be set to "Microsoft Visual Basic for Applications Extensibility 5.3".
Use the following code in your master workbook to export all of its VBA code to a shared directory (e.g. H:\VBA Modules):
Create a VBA CodeModule named M99_ImportVBA in each of the User workbooks whose VBA you wish to update regularly, and insert the following code into it:
Finally, insert the following code into the "ThisWorkbook" VBA CodeModule:
Using the above approach means that your updated VBA CodeModules need to be exported only to the shared folder. Each time a User workbook is opened, all of its VBA CodeModules will be deleted, and those from the shared folder will be imported to replace them.
Hope this helps - please let me know how you get on.
Regards,
Greg M
Bookmarks