#1
|
|||
|
|||
Search with dropdown fields on Word for Mac
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 |
#2
|
||||
|
||||
On Windows versions we would be recommending Content Controls rather than form fields but I don't know if they are supported on a Mac version of Word. Are you using formfields or Content Controls?
A combobox allows you to type an entry that isn't in the list. A dropdown only allows selection from the list.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
Does this screenshot help answer that?
Pasteboard - Uploaded Image I also found this answer on another forum: Redirecting Unless Word for the Mac has changed, Tin's response is about legacy form fields, not content controls. For a Mac it is more complex. Word for the Mac will use Content Controls but has no built-in way to insert or modify them. So it sounds like I may be using legacy form fields? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word Form Fields Dropdown | porterhouse3 | Word VBA | 1 | 07-10-2017 06:02 PM |
Dropdown boxes to multiple fields? | Nukedaddy | Word | 3 | 09-16-2016 06:50 AM |
Word 2013 cannot edit doc with dropdown fields | wordcam | Word | 12 | 11-21-2014 07:03 PM |
Microsoft Word Form, DropDown Fields and Calculations | Tracy Lynn | Word VBA | 2 | 09-29-2013 08:59 PM |
Microsoft Word Calculations and Dropdown Fields | Tracy Lynn | Office | 4 | 06-26-2013 07:36 AM |