WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Moving data from userform to the word template.

 
   Home -> Office -> User Forms RSS
Next:  Changing default full-column table width in Word ..  
Author Message
vmaruv




Joined: Oct 16, 2008
Posts: 1



(Msg. 1) Posted: Thu Oct 16, 2008 3:31 pm
Post subject: Moving data from userform to the word template.

Hi!

I have a word template with controls in it. It works as a form. I have a button on which when I click, opens a user form. The user form has options to dynamically add or remove text boxes.
My requirement is that when I add text boxes on the user form and enter data and click on done button on it, the data entered in the text boxes needs to be transferred back to the word template (form).
I have this code which is inserting the data at the end of the form (appending) but i want to insert it at a particular location on the form in a table. I'm not sure how I can achieve this using the active document's fields properties. Any help is greatly appreciated.

ActiveDocument.Content.InsertAfter _
"Criteria #" & i & ": " & Me.Controls("txtCriteria1" & i).Value & vbCrLf

Thanks in Advance.
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> User Forms All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support