Greg
Wed Feb 22 16:56:47 CST 2006
Change the dropdown field bookmark name to "DD1"
--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.
Oscar Trevino wrote:
> Using this code, I get a "Run Time Error '5941:The Requested member
> of the collection does not exist.
>
> Maybe I need a stronger nudge
>
>> Something like:
>>
>> Sub DD1Exit()
>> Dim oFormFld As FormField
>> Set oFormFld = ActiveDocument.FormFields("DD1")
>> ActiveDocument.Unprotect
>> Select Case oFormFld.Result
>> Case "Red"
>> oFormFld.Range.Font.Color = wdColorRed
>> Case "Blue"
>> oFormFld.Range.Font.Color = wdColorBlue
>> oFormFld.Range.Font.Name = "Arial"
>> 'Case ...
>> End Select
>> ActiveDocument.Protect wdAllowOnlyFormFields, True
>> End Sub
>>
>>
>
> "Klaus Linke" wrote:
>
>> Hi Oscar,
>>
>> The font used in the drop down menu is set in Windows (Display
>> properties > Appearance > Advanced... > Menu, the default being
>> "Tahoma").
>> I wouldn't change it in a VBA macro, even if you might be able do it
>> in principle.
>>
>> Greetings,
>> Klaus
>>
>>
>> "Oscar Trevino" wrote:
>>> Thanks for the reality check, on #3.
>>>
>>> To nudge me in the right direction, would anyone be able to suggest
>>> syntax to manipulate the objects, properties, methods, etc.
>>> involved?
>>>
>>> How about some code? :)
>>>
>>> "Jonathan West" wrote:
>>>
>>>>
>>>> "Oscar Trevino" <OscarTrevino@discussions.microsoft.com> wrote in
>>>> message news:77435633-E010-478D-8D55-4CC345AC04A1@microsoft.com...
>>>>> Hey you, solution searchers and solution gurus.
>>>>>
>>>>> Using Word 2003:
>>>>> 1. I want to assign a different font color for each of the four
>>>>> values in
>>>>> my
>>>>> dropdown field.
>>>>
>>>> Can only be done with a macro triggered on exit from the field
>>>>
>>>>>
>>>>> 2. I also want to assign a different font for one of the four
>>>>> values in my
>>>>> dropdown field.
>>>>
>>>> Can only be done with a macro triggered on exit from the field
>>>>
>>>>>
>>>>> 3. I want the values to display "correctly" in the dropdown list;
>>>>> the values
>>>>> currently don't display "correctly" until they're "selected" - as
>>>>> three of
>>>>> four values are formatted with the Windings3 font.
>>>>
>>>> Impossible. The dropdown field simply doesn't support this.
>>>>
>>>>
>>>> --
>>>> Regards
>>>> Jonathan West - Word MVP
>>>> www.intelligentdocuments.co.uk
>>>> Please reply to the newsgroup
>>>> Keep your VBA code safe, sign the ClassicVB petition
>>>> www.classicvb.org