M
Martin Dobson
Hi Guys
I've got a weird problem with a Word Template VBA Project in Word 2003. My template is a simply styled Word Document and has certain "tags" within it, such as [title] and [author] these tags are replaced with content from a userform
Here is an explaination of how it works:
When my template is first run it invokes the Document_New() event which opens a main userform with fields to fill in
The userform is a simple enough form broken down into tabs with text boxes and two command buttons, "cancel" and "Finish". The "Finish" button fires an event that goes away looks through the header, body and footer for certain "tag" references like mentioned in the above paragraph and then replaces them with text entered in the userform textbox controls. This all works fine in Word 2000, Word XP and Word 2003
My problem is that I want to add a Progress message in the form of a userform that appears while the replace occurs against the document. I have tried to use <form>.Show vbModeLess to open the Progress form and then fire my function which replaces the document content. When I test it though the code stops at the <form>.Show vbModeless statement everytime, nothing else get's fired and have even tried adding the reference to my function in the Progress forms Userform_Activate() event, this never gets fired
Please help what am I doing wrong?
Thanks in advance
Martin Dobso
Developer, UK
I've got a weird problem with a Word Template VBA Project in Word 2003. My template is a simply styled Word Document and has certain "tags" within it, such as [title] and [author] these tags are replaced with content from a userform
Here is an explaination of how it works:
When my template is first run it invokes the Document_New() event which opens a main userform with fields to fill in
The userform is a simple enough form broken down into tabs with text boxes and two command buttons, "cancel" and "Finish". The "Finish" button fires an event that goes away looks through the header, body and footer for certain "tag" references like mentioned in the above paragraph and then replaces them with text entered in the userform textbox controls. This all works fine in Word 2000, Word XP and Word 2003
My problem is that I want to add a Progress message in the form of a userform that appears while the replace occurs against the document. I have tried to use <form>.Show vbModeLess to open the Progress form and then fire my function which replaces the document content. When I test it though the code stops at the <form>.Show vbModeless statement everytime, nothing else get's fired and have even tried adding the reference to my function in the Progress forms Userform_Activate() event, this never gets fired
Please help what am I doing wrong?
Thanks in advance
Martin Dobso
Developer, UK