Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2005

Tip: Looking for answers? Try searching our database.

userform data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DowningDevelopments - 11 Oct 2005 17:40 GMT
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
Suzette - 11 Oct 2005 18:33 GMT
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

> 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)
[quoted text clipped - 12 lines]
> This is the code for the form, do i use bookmarks on the page and then
> reference those? Any help would be gratefully received
Doug Robbins - 11 Oct 2005 19:07 GMT
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.

Signature

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

> 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)
[quoted text clipped - 12 lines]
> This is the code for the form, do i use bookmarks on the page and then
> reference those? Any help would be gratefully received
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.