view
09-09-2009, 02:30 AM
Hello all,
As a disclaimer, I may be confusing some of the terminology for the file types and their intended uses so I apologise in advanced.
I've got a word document in which I've created a UserForm with various text boxes etc which you fill out. The contents of the form are then used to 'populate' the document (replacing bookmarks with the text in the form).
Satisfied with all the VBA (largely thanks to help provided on this forum!), I saved the .doc as a template. (Note - My colleagues and I are running Word 2002 SP3)
I closed word, navigate to the folder and open the template. After enabling macros, I'm then presented with the form and everything works fine.
However - I logged on to a different machine in the office, navigated to the folder (shared drive) and opened the template. I'm prompted to enable macros, which I do, but then nothing happens.
I opened up the VB Editor (Alt + F11), expanded the "Form" section in the project window and all the VBA for my form is there. The sub to show the form on a new document is there.
Any thoughts on what is going wrong? At the moment I can't upload the file (contains a small amount of confidential information) but if more details are needed I'll clean it up.
I saved it as a template so that when the other staff open it up it generates a new document with no risk of over-writing the original.
Any help with this would be greatly appreciated.
As a disclaimer, I may be confusing some of the terminology for the file types and their intended uses so I apologise in advanced.
I've got a word document in which I've created a UserForm with various text boxes etc which you fill out. The contents of the form are then used to 'populate' the document (replacing bookmarks with the text in the form).
Satisfied with all the VBA (largely thanks to help provided on this forum!), I saved the .doc as a template. (Note - My colleagues and I are running Word 2002 SP3)
I closed word, navigate to the folder and open the template. After enabling macros, I'm then presented with the form and everything works fine.
However - I logged on to a different machine in the office, navigated to the folder (shared drive) and opened the template. I'm prompted to enable macros, which I do, but then nothing happens.
I opened up the VB Editor (Alt + F11), expanded the "Form" section in the project window and all the VBA for my form is there. The sub to show the form on a new document is there.
Any thoughts on what is going wrong? At the moment I can't upload the file (contains a small amount of confidential information) but if more details are needed I'll clean it up.
I saved it as a template so that when the other staff open it up it generates a new document with no risk of over-writing the original.
Any help with this would be greatly appreciated.