Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-13-2022, 06:25 PM
rperrett rperrett is offline Search with dropdown fields on Word for Mac Mac OS X Search with dropdown fields on Word for Mac Office 2016 for Mac
Novice
Search with dropdown fields on Word for Mac
 
Join Date: Oct 2022
Posts: 2
rperrett is on a distinguished road
Default 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

Reply With Quote
  #2  
Old 10-13-2022, 08:55 PM
Guessed's Avatar
Guessed Guessed is offline Search with dropdown fields on Word for Mac Windows 10 Search with dropdown fields on Word for Mac Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote
  #3  
Old 10-13-2022, 09:41 PM
rperrett rperrett is offline Search with dropdown fields on Word for Mac Mac OS X Search with dropdown fields on Word for Mac Office 2016 for Mac
Novice
Search with dropdown fields on Word for Mac
 
Join Date: Oct 2022
Posts: 2
rperrett is on a distinguished road
Default

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?
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Form Fields Dropdown porterhouse3 Word VBA 1 07-10-2017 06:02 PM
Search with dropdown fields on Word for Mac Dropdown boxes to multiple fields? Nukedaddy Word 3 09-16-2016 06:50 AM
Search with dropdown fields on Word for Mac Word 2013 cannot edit doc with dropdown fields wordcam Word 12 11-21-2014 07:03 PM
Search with dropdown fields on Word for Mac Microsoft Word Form, DropDown Fields and Calculations Tracy Lynn Word VBA 2 09-29-2013 08:59 PM
Search with dropdown fields on Word for Mac Microsoft Word Calculations and Dropdown Fields Tracy Lynn Office 4 06-26-2013 07:36 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:00 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft