#1
|
|||
|
|||
Planning a new script to highlight superscripts
I'm setting out to start a new script, where the request from the editors are to have a way they can click a button, and all superscripts in the document are made easy to see. I'm thinking to give them a bright shaded color, and make their font size whatever they are now times 2.
Of course, the problem arises when the document is saved, how would one know if the superscripts are already in the highlighted state or not? I'm thinking as I change them, to also store a document variable, so the next time the document is opened, this button would somehow know that superscripts are already highlighted, so if the button is clicked now, they will toggle back to their normal state - no shading, and their font size, time 0.5. Just throwing this idea out there before I've started in case anyone has any ideas, or if you see any problems with my plan. I've been learning alot of VBA over the past year, but still find so many things yet to know. This will be my first checkbox on the ribbon, if that's what ends up being the best way to achieve that document variable. Maybe I could have 2 checkboxes, and let the editor decide if they wanted to use both enlarging the font AND shading. |
#2
|
||||
|
||||
I would be setting the superscript by applying a Character Style (eg Footnote Reference)to any superscripts and then your macro only has to change the style definition rather than searching through the document to find all instances. This makes it easy to toggle on/off.
You would probably need a cleanup macro to ensure all superscripts have the char style applied
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
Thanks for the advice, I'll look into how that is done. Makes sense. The good thing is that our documents are all static text at this stage. No dynamic endnotes or footnotes.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pasting superScripts from Word problem | BrianHoard | Word VBA | 9 | 08-07-2022 01:44 PM |
Planning A MS Word Job | William647 | Word | 6 | 11-13-2019 03:06 PM |
Event planning | cajos | Project | 3 | 03-26-2016 05:19 PM |
Adapt a script used in Word to highlight words, to work in Outlook? | flatop | Outlook | 5 | 07-15-2014 01:07 PM |
find - reading highlight - highlight all / highlight doesn't stick when saved | bobk544 | Word | 3 | 04-15-2009 03:31 PM |