Checking a check box in Word with VBS 
Author Message
 Checking a check box in Word with VBS

The following lines of code worked well to send data from an Access
database to the corresponding field in a Word template document.

objWord.ActiveDocument.Bookmarks("name").Select  
objWord.Selection.Text = (CStr(name))  

My problem is: I want to check a check box in my Word template if the
corresponding check box is checked in my Access database. Which methods,
events or ... I could use to do that (in a way like the one showed
above, if possible) ?  

Please help me! I searched in the MSDN documentation and I'm not able to
find the right method or object to use or ...  

Sylvain Drapeau



Mon, 27 Jan 2003 03:00:00 GMT  
 Checking a check box in Word with VBS

The following lines of code worked well to send data from an Access
database to the corresponding field in a Word template document.

objWord.ActiveDocument.Bookmarks("name").Select  
objWord.Selection.Text = (CStr(name))  

My problem is: I want to check a check box in my Word template if the
corresponding check box is checked in my Access database. Which methods,
events or ... I could use to do that (in a way like the one showed
above, if possible) ?  

Please help me! I searched in the MSDN documentation and I'm not able to
find the right method or object to use or ...  

Sylvain Drapeau



Mon, 27 Jan 2003 03:00:00 GMT  
 Checking a check box in Word with VBS
I suggest you create a macro in Word that "checks" the CheckBox. You can
call macros from the outside.

    Set WordObject = CreateObject("Word.Application")
    WordObject.Run "CheckTheBox"

Hope this helps

--
Gerardo Villeda
MVP - Visual Basic
http://www.netreach.net/~gvilleda


Quote:
> The following lines of code worked well to send data from an Access
> database to the corresponding field in a Word template document.

> objWord.ActiveDocument.Bookmarks("name").Select
> objWord.Selection.Text = (CStr(name))

> My problem is: I want to check a check box in my Word template if the
> corresponding check box is checked in my Access database. Which methods,
> events or ... I could use to do that (in a way like the one showed
> above, if possible) ?

> Please help me! I searched in the MSDN documentation and I'm not able to
> find the right method or object to use or ...

> Sylvain Drapeau



Tue, 28 Jan 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Checking a check box in Word with VBS

2. Checking a check box in Word with VBS

3. VBA Check and Option Check Boxes

4. Placing a check in check mark boxes and have it add prices

5. checked listview, background color, and the stupid check boxes

6. Check for checked values in List Box

7. How to: Loop through all objects and count the checked check boxes

8. Check Box being checked if database value is equal to ON

9. Check boxes will not check! vb5

10. check box in Word document

11. Word 2000 check boxes

12. create form in word: include option buttons and check boxes

 

 
Powered by phpBB® Forum Software