This must be a basic VBA question but I haven't been able to figure it out. While I can set up a Word userform stored in a template and run it when creating a new document based on that template, I don't know how to run a userform from an existing document when that userform is stored in a template.
I have attached a userform and code (saved as a .doc file) that splits space-separated text in a selected table column into separate words in columns to its right. (It includes a simple table for demo purposes).
I have code in the Initialize module to hide the document in which the userform and code are stored (DocFrm.ActiveWindow.Visib
le) set to "True" until I can figure out how to deploy this (otherwise I won't be able to see the document).
I was hoping to be able to run this code from the regular Macro menu as I would macros stored in my global template in the Startup folder. I understand that the proper way to store both code and a userform is in a macro-enabled template, but my attempts to run it successfully from such a template haven't worked.
Can someone just give me a few simple steps I can follow to run this 'Split Names' program from any Word document?