Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Word VBA
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Word VBA Discuss using VBA to program Word.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Word VBA 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 Display Modes
  #1 (permalink)  
Old March 6th, 2007, 09:29 AM
aml aml is offline
Registered User
 
Join Date: Jan 2007
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Make Word Form Available for Use on Home Page

How can I make a Word form available on an Intranet site for many to use without everyone having to reset their Macro security to Low (which is against company policy)?

Also - using an On Entry macro, this form "checks" certain lower level check boxs depeneding on which check box is checked at the top of the form.

How do I also change the color of the "X" in the check box at the time it is checked. Thanks for your help.

Sub FillForm()
'Check to see which checkbox is checked
If ActiveDocument.FormFields("Check1").CheckBox.Value = True Then
        StdROW
        Else
        If ActiveDocument.FormFields("Check2").CheckBox.Value = True Then
        CPROW
        End If
End If

End Sub

Sub StdROW()
ActiveDocument.FormFields("Check7").CheckBox.Value = False
ActiveDocument.FormFields("Check8").CheckBox.Value = False
ActiveDocument.FormFields("Check9").CheckBox.Value = False
ActiveDocument.FormFields("Check3").CheckBox.Value = True
ActiveDocument.FormFields("Check4").CheckBox.Value = True
ActiveDocument.FormFields("Check5").CheckBox.Value = True
ActiveDocument.FormFields("Check6").CheckBox.Value = True
ActiveDocument.FormFields("Check10").CheckBox.Valu e = True
End Sub

Sub CPROW()
ActiveDocument.FormFields("Check3").CheckBox.Value = False
ActiveDocument.FormFields("Check4").CheckBox.Value = False
ActiveDocument.FormFields("Check5").CheckBox.Value = False
ActiveDocument.FormFields("Check6").CheckBox.Value = False
ActiveDocument.FormFields("Check7").CheckBox.Value = True
ActiveDocument.FormFields("Check8").CheckBox.Value = True
ActiveDocument.FormFields("Check9").CheckBox.Value = True
ActiveDocument.FormFields("Check10").CheckBox.Valu e = True
End Sub


Reply With Quote
Reply


Thread Tools
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
How to Link User control Form to Home page Dhanapal ASP.NET 1.0 and 1.1 Basics 1 March 12th, 2007 05:30 PM
VBA w/ Word 2000 - Make form on top of everything mvick VB How-To 10 October 2nd, 2006 09:28 AM
Reload Home Page qazi_nomi HTML Code Clinic 1 August 8th, 2004 12:22 PM
Renaming the home page derek Dreamweaver (all versions) 2 May 24th, 2004 12:33 PM
Overlaying image/flash, over the home page karib Flash (all versions) 7 April 26th, 2004 04:28 PM



All times are GMT -4. The time now is 03:04 AM.


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