userform data

  • Thread starter DowningDevelopments
  • Start date
D

DowningDevelopments

Hello im a database engineer who was given a task by my boss yesterday to
create a template word document (which she promised me would be easy) which
prompted the user to fill in the certain details before the document then
went on to be printed. The main detail is the Site name, ive tried to create
a userform which had a drop down list of the available site names and the
user would then click on one and the value would be inserted into the page at
the appropriate spot, at least that was my thinking. Ive created the form
with the drop down list and it pops up on the form open event, however i cant
find a way to tell it where to put the value picked on the page.

This is the code for the form, do i use bookmarks on the page and then
reference those? Any help would be gratefully received
 
S

Suzette

You use a TypeText command to put the information on the page. If there is
specific formatting or locations then you need to set a bookmark to go to.
Your code isn't showing but you would do a

selection.typetext combobox.text
 
D

Doug Robbins

Use either bookmarks as mentioned in the the article "How to create a
Userform" at:

http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm

or insert Docvariable fields in the template and then use code in the form
to set the value of the variables and update the fields in the document so
that they show the results.


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top