I have a situation where a number of files (Excel and Word) all need a particular macro to run when they are opened. I am trying to decide on the best way to do this.
I could add the code to a .bas file and import into all applicable files, but if the code needs changing I would need to re-import into all the files. It would be great to maintain it in a single place and not have to re-import the module when it changes.
My thoughts at this stage are that potentially creating an add-in to maintain the code centrally would be a good solution. I would then call the functions within the add-in when the files open.
Does anyone have any other suggestions on any better ways to achieve this?
Thanks.
I could add the code to a .bas file and import into all applicable files, but if the code needs changing I would need to re-import into all the files. It would be great to maintain it in a single place and not have to re-import the module when it changes.
My thoughts at this stage are that potentially creating an add-in to maintain the code centrally would be a good solution. I would then call the functions within the add-in when the files open.
Does anyone have any other suggestions on any better ways to achieve this?
Thanks.