Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 12-10-2011, 01:15 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Need to put two highlight buttons on toolbar in different colors Windows 7 64bit Need to put two highlight buttons on toolbar in different colors Office 2010 32bit
Moderator
 
Join Date: Aug 2011
Posts: 4,005
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

It's really not a complex task with a macro. Try the following two macros:

Sub CustomHighlightOne()
Selection.Range.HighlightColorIndex = wdYellow
End Sub

Sub CustomHighlightTwo()
Selection.Range.HighlightColorIndex = wdBlue
End Sub

Of course, you'd have to change the values for HighlightColorIndex to suit your needs.

See http://www.gmayor.com/installing_macro.htm for assistance with installing macros.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Highlight un-identifiable wolfer Word VBA 0 08-24-2011 06:37 AM
Create a toolbar of fill colors itgoeson PowerPoint 0 08-24-2010 01:26 PM
Need to put two highlight buttons on toolbar in different colors custom toolbar with buttons to open new docs based on templates Brandi Mail Merge 18 06-15-2010 02:10 PM
find - reading highlight - highlight all / highlight doesn't stick when saved bobk544 Word 3 04-15-2009 03:31 PM
command buttons ronf Excel 0 04-28-2006 08:32 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:29 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