Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Word VBA
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 6th, 2007, 10:29 AM
aml aml is offline
Registered User
 
Join Date: Jan 2007
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







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





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