Greetings All,
My sole surviving grey brain cell has a problem( well several but thats another story). How do you run a macro in one template
from another without referencing?
My dilemna is that I have new templates with a completely new set of styles. Using arrays that match the new styles against the old ones
I can reattach an existing doc to its new template and then using find/replace to update the doc. This works but I don’t want to duplicate the
code in each & every template.
now I can pass a array to the add-in/run code which then does the re-attachment but,The add-in then has to run a macro
in the attached template that sends it the style arrays. As I can’t have two templates referencing each other
I’ve come unstuck.
Application.Run “Thistemplate.ThisModule.ThisProcedure” seems to be what I need but I just can’t seem to get a handle on it.
Can anyone help me with the exact syntax
I also looked at Application.VBE.ActiveVBProject.VBComponents as a possible solution but can’t even get to the macros within a
module let alone run them.
Brain-dead