View Single Post
 
Old 06-21-2018, 08:54 PM
sixt33n sixt33n is offline Windows 10 Office 2013
Novice
 
Join Date: Jun 2018
Posts: 1
sixt33n is on a distinguished road
Default Highlight macro for quick access toolbar

Hello,

I was wondering if anybody has a macro that I could create to add to quick access toolbar. I am using to highlight research documents for school and I have found it pretty hard to keep clicking color changes to highlight different aspects of the documents as I read it. It would have been ideal to have a separate window for highlight colors that does not collapse while highlighting so I can just click once just to change colors and continue on with highlighting.

So in my search, I found a website with this code.


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


I can assign the color to the quickaccess. My only issue with this is that I have to first highlight the text and then click on the macro, and it doesn't lock the highlight tool. So if I see text further down that I would like to color with the same color, I have to highlight the text first again, and then click on the macro icon.

Is there any way that I can first click the macro icon for a specific color which locks the highlighter tool to that color so that I can keep highlighting with the same color? Then switch color with another macro assigned to a different color to the quick access tool instead?

Help would be greatly appreciated. Finals next week and I have a 2 research papers to read, a paper to write, and a novel to base it on. Downsides of a person who learns best with visual cues I guess.

Thank you in advance!
Bryan
Reply With Quote