Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Enable a ComboBox using VBA
Hi Graham
I thought I had it from your last post. This is my code but it does not seem to work. This code is run when I select the FormField called "ClinicType1". Sub EnableCandABox2() Dim bEnable As Boolean Dim Check As String With ActiveDocument .FormFields("Specialty").Select Check = .FormFields("Specialty").Result If Check = "Children's & Adolescent Services" Then .Unprotect Password:="" .FormFields("ClinicType1").Select With Dialogs(wdDialogFormFieldOptions) .Enable = bEnable .Execute End With .Protect NoReset:=True, Password:="", Type:=wdAllowOnlyFormFields End If End With End Sub Any help would be appreciated. Thanks -- TonyK |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Enable a ComboBox using VBA
Did you see my revised version of your macro?
-- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org TonyK wrote: Hi Graham I thought I had it from your last post. This is my code but it does not seem to work. This code is run when I select the FormField called "ClinicType1". Sub EnableCandABox2() Dim bEnable As Boolean Dim Check As String With ActiveDocument .FormFields("Specialty").Select Check = .FormFields("Specialty").Result If Check = "Children's & Adolescent Services" Then .Unprotect Password:="" .FormFields("ClinicType1").Select With Dialogs(wdDialogFormFieldOptions) .Enable = bEnable .Execute End With .Protect NoReset:=True, Password:="", Type:=wdAllowOnlyFormFields End If End With End Sub Any help would be appreciated. Thanks |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Enable a ComboBox using VBA | Microsoft Word Help | |||
ComboBox Help | Microsoft Word Help | |||
Combobox, listbox, something! | Microsoft Word Help | |||
How do I set up a combobox on word? | New Users | |||
combobox | Microsoft Word Help |