M
Mark.P.Bruno
Hello,
I'm trying to design a VBA form that has a bunch of text boxes and a
generate button. When the generate button is pressed, the text of the
text boxes are placed in corresponding labels on the word document.
(Sounds pretty pointless but the tricky positioning of the labels makes
it worthwhile).
My code works perfectly in the original .doc I created, when I run the
form from the VBA editor. Since I want this to be a template where the
form displays automatically upon opening a new document, I added
"UserForm1.Show" to a Document_New() subroutine in ThisDocument. Then
I saved it as a .dot file.
Upon opening the .dot file, the form appears, but when the genereate
button is clicked, none of the text is actually put onto the document.
I'm sorry my description is so poor; this is literally my first
experience with VBA (I know some VB 6.0 from way back). Does anyone
know what I'm doing wrong?
Thanks a lot.
-Mark
I'm trying to design a VBA form that has a bunch of text boxes and a
generate button. When the generate button is pressed, the text of the
text boxes are placed in corresponding labels on the word document.
(Sounds pretty pointless but the tricky positioning of the labels makes
it worthwhile).
My code works perfectly in the original .doc I created, when I run the
form from the VBA editor. Since I want this to be a template where the
form displays automatically upon opening a new document, I added
"UserForm1.Show" to a Document_New() subroutine in ThisDocument. Then
I saved it as a .dot file.
Upon opening the .dot file, the form appears, but when the genereate
button is clicked, none of the text is actually put onto the document.
I'm sorry my description is so poor; this is literally my first
experience with VBA (I know some VB 6.0 from way back). Does anyone
know what I'm doing wrong?
Thanks a lot.
-Mark