![]() |
#1
|
|||
|
|||
![]()
Hi there, I'm hoping you can help as I have got stuck with what I think may be a Mac issue but I'm not sure.
I am trying to change the colour of the text in a dropdown based on its selected value. My code below works to change all fields green, however I am unable to figure out how to reference the currently selected value in order to search/filter on text values. The object .DropDown doesn't seem to exist which has me confused. The fields were created in Word for Mac by using the Developer menu in the ribbon - Insert Combobox. What is the difference between a combobox and dropdown box? Code:
Dim oFld As Field For Each oFld In ActiveDocument.Fields If oFld.Type = wdFieldFormDropDown Then oFld.Code.Font.ColorIndex = wdGreen End If Next oFld |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word Form Fields Dropdown | porterhouse3 | Word VBA | 1 | 07-10-2017 06:02 PM |
![]() |
Nukedaddy | Word | 3 | 09-16-2016 06:50 AM |
![]() |
wordcam | Word | 12 | 11-21-2014 07:03 PM |
![]() |
Tracy Lynn | Word VBA | 2 | 09-29-2013 08:59 PM |
![]() |
Tracy Lynn | Office | 4 | 06-26-2013 07:36 AM |