Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-05-2022, 08:21 PM
BrianHoard BrianHoard is offline Planning a new script to highlight superscripts Windows 10 Planning a new script to highlight superscripts Office 2019
Advanced Beginner
Planning a new script to highlight superscripts
 
Join Date: Jul 2022
Location: Haymarket, VA USA
Posts: 85
BrianHoard is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 10-05-2022, 09:11 PM
Guessed's Avatar
Guessed Guessed is offline Planning a new script to highlight superscripts Windows 10 Planning a new script to highlight superscripts Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote
  #3  
Old 10-05-2022, 09:14 PM
BrianHoard BrianHoard is offline Planning a new script to highlight superscripts Windows 10 Planning a new script to highlight superscripts Office 2019
Advanced Beginner
Planning a new script to highlight superscripts
 
Join Date: Jul 2022
Location: Haymarket, VA USA
Posts: 85
BrianHoard is on a distinguished road
Default

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.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Planning a new script to highlight superscripts 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

Other Forums: Access Forums

All times are GMT -7. The time now is 12:15 AM.


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