Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-30-2012, 01:02 PM
icecode icecode is offline Question on userform and doc interaction Windows XP Question on userform and doc interaction Office 2010 32bit
Novice
Question on userform and doc interaction
 
Join Date: Jul 2012
Posts: 2
icecode is on a distinguished road
Default Question on userform and doc interaction

I am creating a program that contains text boxes and combo boxes in Visual basic using visual studio professional 2010. I was wondering if anyone knows how to or where I can go to find out how to have the data that the user can enter and when done generate to a word template? Or is this even possible?
Reply With Quote
  #2  
Old 07-30-2012, 01:33 PM
Charles Kenyon Charles Kenyon is offline Question on userform and doc interaction Windows Vista Question on userform and doc interaction Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 6,315
Charles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to all
Default

You might want to look at Create a Simple Userform
That is about vba rather than visual basic but covers the basics.

Why are you generating a template rather than a document? You might want to start with a template that calls your userform when called to create a new document and then populates the document from information in the userform.
Reply With Quote
  #3  
Old 08-01-2012, 08:38 AM
icecode icecode is offline Question on userform and doc interaction Windows XP Question on userform and doc interaction Office 2010 32bit
Novice
Question on userform and doc interaction
 
Join Date: Jul 2012
Posts: 2
icecode is on a distinguished road
Default

Thank you for your help. What I am trying to do is create a program and after the user finishes entering data a report can be generated to a word document.
Reply With Quote
  #4  
Old 08-01-2012, 08:41 AM
Charles Kenyon Charles Kenyon is offline Question on userform and doc interaction Windows Vista Question on userform and doc interaction Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 6,315
Charles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to all
Default

The simplest way is probably to skip visual studio and just use vba in a template. Have the AutoNew macro or Document_New event trigger your userform. The article I referred you to should give you what you need.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
showing a userform after hiding jillapass Word VBA 0 05-31-2012 06:13 AM
Specific and no other interaction points? anevins PowerPoint 0 03-20-2011 11:37 AM
Outlook userform validation help aiwnjoo Outlook 0 12-08-2010 12:57 AM
Displaying data from spreadsheet in Userform darklide Excel 0 03-12-2010 05:42 AM
[Word 2003] Macro's and a UserForm xanuex Word VBA 0 10-19-2009 05:42 AM


All times are GMT -7. The time now is 10:52 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft