A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Page Layout
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Word 2003 - Where does Word store Userform code?



 
 
Thread Tools Display Modes
  #1  
Old October 15th, 2009, 09:08 PM posted to microsoft.public.word.pagelayout
Congenital Kano
external usenet poster
 
Posts: 5
Default Word 2003 - Where does Word store Userform code?

I created a template and userform to fill in a form letter for my wife's PTA treasurer job on my PC. Worked just fine - creating a new doc based on the template called the userform and passed the variables to the doc. I copied the letter template to various locations on her machine (including the default \users\...\templates) directory. The template shows up, but when I create a new doc based on the template the userform does not appear.

OK, I thought, maybe it's because her machine has Word 2002 and it was created in 2003; I install 2003 on her machine. No love.

Fine, maybe it is making a call to normal.dot, so I replaced her Normal.dot with mine. I know it is using my normal.dot because my macro buttons etc. appear. Still will not call the userform.

What am I doing wrong? What do I need to copy or change to call the userform from the template?

One thing that niggles my memory is whether I was asked to save the userform to a certain location - I don't remember (as I recall, you don't save the userform, just close the VBA window, but I may have been asked for a location the first time).

Any help will be appreciated. The trouble I get into when trying to be nice to my wife...

TIA!
  #2  
Old October 15th, 2009, 09:26 PM posted to microsoft.public.word.pagelayout
Greg Maxey[_2_]
external usenet poster
 
Posts: 649
Default Word 2003 - Where does Word store Userform code?

I can only assume that the user form is part of the template project.

Open the template, then open the VB Editor (Alt+F11). Open the project explorer CTRL+r and see if you have a forms folder in the project that contains your form.

Did you include an AutoNew() procedure in your template to initialize and show the form?

--
Greg Maxey

See my web site http://gregmaxey.mvps.org
for an eclectic collection of Word Tips.

"It is not the critic who counts, not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man in the arena, whose face is marred by dust and sweat and blood, who strives valiantly...who knows the great enthusiasms, the great devotions, who spends himself in a worthy cause, who at the best knows in the end the triumph of high achievement, and who at the worst, if he fails, at least fails while daring greatly, so that his place shall never be with those cold and timid souls who have never known neither victory nor defeat." - TR


"Congenital Kano" wrote in message ...
I created a template and userform to fill in a form letter for my wife's PTA treasurer job on my PC. Worked just fine - creating a new doc based on the template called the userform and passed the variables to the doc. I copied the letter template to various locations on her machine (including the default \users\...\templates) directory. The template shows up, but when I create a new doc based on the template the userform does not appear.

OK, I thought, maybe it's because her machine has Word 2002 and it was created in 2003; I install 2003 on her machine. No love.

Fine, maybe it is making a call to normal.dot, so I replaced her Normal.dot with mine. I know it is using my normal.dot because my macro buttons etc. appear. Still will not call the userform.

What am I doing wrong? What do I need to copy or change to call the userform from the template?

One thing that niggles my memory is whether I was asked to save the userform to a certain location - I don't remember (as I recall, you don't save the userform, just close the VBA window, but I may have been asked for a location the first time).

Any help will be appreciated. The trouble I get into when trying to be nice to my wife...

TIA!
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:46 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.