Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 04-20-2021, 05:46 PM
macropod's Avatar
macropod macropod is online now How to change VB code so dropdown conditional format color changes to "wdLightOrange" Windows 10 How to change VB code so dropdown conditional format color changes to "wdLightOrange" Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by GoChatter View Post
Thank you Paul! Really wish I had some programming knowledge. I have another question... Where should I paste the code? When I look at your document, I only see it in the VBA area; not the Macro area. However when I copy the code and paste it into my word document, nothing happens when I select something from the drop down menu.
The code goes in the 'ThisDocument' code module of the document (as is the code in the 'demo' document I posted) or, if you're using a particular template and want to have all the document based on that template have access to the same code, in the 'ThisDocument' code module of that template. The latter would also allow your documents to be saved in the docx format.

Macros that take arguments (in this case ByVal ContentControl As ContentControl, and Cancel As Boolean) are not accessible via the GUI.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting date change "Y" lolla70 Excel Programming 3 04-24-2019 11:13 AM
Need help with conditional formatting & returning "Pass" / "Fail Results" in a Column N mikey386 Excel 2 12-11-2014 01:14 PM
Change "File As" and "Display As" format davesp Outlook 0 10-14-2014 12:10 PM
Is there a way to change "Genesis" Theme Color from Blue to Green FUNKSTICK PowerPoint 13 03-12-2014 12:29 AM
How to globally change default "pattern fill" color for all shapes in PP 2013 tbach PowerPoint 1 01-31-2014 10:59 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:55 PM.


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