Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 8th, 2005, 02:30 PM
Registered User
 
Join Date: Jul 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default creating a form in ms word

I am trying to create a form in ms word using vb.
i have 2 questions: i have created some options buttons.
1. i need to code it so one click would select it and another would unselect it.
2. also i have 3 options and i want people to be able to select all 3 if possible.
3. i want to set up a command button that would email the resulting form to me when people have finished filling it out.
is this possible? i am a begginer and i want to learn how to do this.
thanks for all your help.
kaly

Reply With Quote
  #2 (permalink)  
Old July 13th, 2005, 02:11 AM
Friend of Wrox
Points: 687, Level: 9
Points: 687, Level: 9 Points: 687, Level: 9 Points: 687, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Kaly

Check this link
http://in.geocities.com/raghavendra_.../vbFrmDoc2.zip

Unzip the file, It contains a word doc of 2003 version click that button you will see a VBA form
created in the ms-word using VBA controls. Here
even you can send the mail as you asked.

I guess, i have understood what you have said.

And For sending mail, please change the values to
to your smpt server name and port number and
your user name and password.

Hope this helps.


With Regards,
Raghavendra Mudugal
Reply With Quote
  #3 (permalink)  
Old August 3rd, 2005, 09:34 PM
Registered User
 
Join Date: Aug 2005
Location: , , Senegal.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Raghavendra_Mudugal,
i have a problem here, can you teach me how to import VBA form to ms word. i got create a form in VBA and will like to show this form in ms word format.. i look through many website and could not find any information.. i believe that it is impossible to do in this way, you have any idea. btw, i using msoffice 2003. Glad if have any example for me to look through... sorry for my poor english.. thank u..


Reply With Quote
  #4 (permalink)  
Old August 3rd, 2005, 11:54 PM
Friend of Wrox
Points: 687, Level: 9
Points: 687, Level: 9 Points: 687, Level: 9 Points: 687, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Cheewee

You need to import forms of VBA to msword. You can create those forms in
msword visual basic editio.

If you have a form before done through VBA then, open the msword and then
Visual Basic editor then click the project explorer there you can import
the new forms done or export the existing form in msword to other.

Hope this helps.

With Regards,
Raghavendra Mudugal
Reply With Quote
  #5 (permalink)  
Old August 4th, 2005, 01:58 AM
Registered User
 
Join Date: Aug 2005
Location: , , Senegal.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I know in ms word we can use the visual basic editor by pressing Alt+F11 but i still wondering i just cant show the form inside ms words and to save it in ms templates .dot. sorry. i really quite weak on doing this.. i have ready make form in ms access with those tabe... i will hope to click a button on the ms access form, so it will open ms words with the form that i create.

Reply With Quote
  #6 (permalink)  
Old August 4th, 2005, 02:09 AM
Friend of Wrox
Points: 687, Level: 9
Points: 687, Level: 9 Points: 687, Level: 9 Points: 687, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Cheewee

Try these points

. create new word doc
. create new form
. add a button
. on click event of that button , show the form

It should show the form that you have created.
if not do following points

In the Visual Basic toolbar
. click security
. In security level tab set it to LOW.
. In Trusted Source tab, check the "Trust Access to Visual basic Project"
. click ok
. save your doc
. reope it and click the button, you must see the form.

If still not able to see the form then check the components are
installed correctly and try to install every features listed

Do these points and let me know

Hope this helps

With Regards,
Raghavendra Mudugal
Reply With Quote
  #7 (permalink)  
Old August 4th, 2005, 02:18 AM
Registered User
 
Join Date: Aug 2005
Location: , , Senegal.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

but how to this ms work link to ms access...


Reply With Quote
  #8 (permalink)  
Old August 4th, 2005, 02:26 AM
Friend of Wrox
Points: 687, Level: 9
Points: 687, Level: 9 Points: 687, Level: 9 Points: 687, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You cant just link form from ms access to msword, for that you have to
use MS Access Object Library of Office 2003 and we need to write the
code open the form. (Here it is a bit long process)

What i told you is all about MS-word only. just create a form there
and check in the MS-Word itsself.

Hope this helps

With Regards,
Raghavendra Mudugal
Reply With Quote
  #9 (permalink)  
Old August 4th, 2005, 02:41 AM
Registered User
 
Join Date: Aug 2005
Location: , , Senegal.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

so it just do like what u had sent to kaly that in ms word there is a button to open the vb form...


Reply With Quote
  #10 (permalink)  
Old August 4th, 2005, 03:26 AM
Friend of Wrox
Points: 687, Level: 9
Points: 687, Level: 9 Points: 687, Level: 9 Points: 687, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2004
Location: Chennai, Tamilnadu, India.
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes.

Did you checked that file what i sent to kaly?

It contains the vbform designed in msword'd VBA itsself and i am calling
it in the click on the button which is placed on the document.

Check that file, it might clear your doubt a bit.

Hope this helps.

With Regards,
Raghavendra Mudugal
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating MS Word documents in ASP Nicky2k Classic ASP Components 3 April 10th, 2007 08:12 AM
Creating an MS-Word like text editor srotondo Classic ASP Basics 8 October 18th, 2004 06:36 PM
Creating MS Word File at Client Side zaeem Classic ASP Components 1 November 2nd, 2003 07:59 PM
VB App creating an Area Chart in MS Word mbyndas VB How-To 0 September 30th, 2003 08:18 AM
Launching an MS-Word template with user input form fpollari Classic ASP Basics 0 June 17th, 2003 09:38 AM



All times are GMT -4. The time now is 12:15 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.