简体   繁体   中英

Change color of selected form-fields with VBA in MS Word

Is there any way to globally change the selection color of all form-fields in MS Word? I have a test form that I fill out as I'm doing a test. My eyes go back and forth between the meters I read and the form I fill out. I then tab to the next field to fill out and read another meter. The default colors of the form-fields between when the field is selected for input and when it is not is not very different. I find myself trying to find my place again when looking at the form again.

Is there any way to globally change the color of all form-fields so that the color when it is selected is much different than the color when not selected? Thanks.

Keep in mind that the form is protected so that only changes to the fields are allowed. So I will have to unprotect the document before I can change it and then reprotect it after I'm done. This much I can do. I can change colors when I enter and exit a field. But this slows down how fast I can fill out the form. So I was hoping there was a property I could set to change only the selection color and cycle through all fields when the document is first opened. Any suggestions out there?

Sorry, the only options for form fields are grey or uncolored. To switch between those 2, VBA is not required. Instead, choose Developer>Legacy Forms and click the 5th icon from the left Form Field Shading (looks like an a with hatch marks around it).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM