Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-31-2022, 10:35 AM
BrianHoard BrianHoard is offline How to check for the higest superScript number, that is NOT red? Windows 10 How to check for the higest superScript number, that is NOT red? Office 2019
Advanced Beginner
How to check for the higest superScript number, that is NOT red?
 
Join Date: Jul 2022
Location: Haymarket, VA USA
Posts: 85
BrianHoard is on a distinguished road
Default How to check for the higest superScript number, that is NOT red?

I'm writing a script that needs to find all superScript numbers in the document, that are NOT red, and get the highest number found.


Here's what I have so far, but I don't know how to process the find to check if the found character is red, or how to retrieve the number it found. I'm thinking I need a loop during the find to check it's font color and text. But I'm stumped how to do that.
Code:
With rng_selection.Find
  .Font.Superscript = True ' Only find superScripts
  .Text = "[0-9]" ' Find only numbers
  .MatchWildcards = True
  .Execute
End With
Thanks for any help.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check for the higest superScript number, that is NOT red? Char style and footnotes reference style superscript - applying character style removes superscript RRB Word 2 06-02-2021 02:54 PM
How to check for the higest superScript number, that is NOT red? Count and display number of spell check errors Leslie Word VBA 3 03-01-2020 03:26 AM
The “spelling and grammar” check fails to work as the number of words in the file exceeds a certain Jamal NUMAN Word 3 09-24-2019 10:45 AM
How to check for the higest superScript number, that is NOT red? Footnote reference numbers precede by superscript '(' and follow w/ superscript ')' Swarup Word 4 07-18-2019 05:51 PM
How to check for the higest superScript number, that is NOT red? cannot check/uncheck check box but added check box learn2office Word 1 11-27-2012 02:02 AM

Other Forums: Access Forums

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