Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-19-2023, 02:17 AM
RobiNew RobiNew is offline Fastest code to format footnote reference marks Windows 10 Fastest code to format footnote reference marks Office 2016
Competent Performer
Fastest code to format footnote reference marks
 
Join Date: Sep 2023
Posts: 183
RobiNew is on a distinguished road
Default Fastest code to format footnote reference marks


I wonder if the code below is the fastest method to format footnote reference marks. Thanks!

Code:
For Each NumRif In ActiveDocument.Footnotes
NrPres = NrPres + 1
Set myRange = ActiveDocument.Footnotes(NrPres).Reference
myRange.Style = ActiveDocument.Styles("MyStyle")
myRange.Font.Color = wdColorBlue
    Next NumRif
    NumRif = 0
    NrPres = 0
Reply With Quote
  #2  
Old 12-19-2023, 05:03 AM
Italophile Italophile is offline Fastest code to format footnote reference marks Windows 11 Fastest code to format footnote reference marks Office 2021
Expert
 
Join Date: Mar 2022
Posts: 338
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

What are you trying to do that you can't achieve by modifying the style "Footnote Reference"?
Reply With Quote
  #3  
Old 12-19-2023, 07:43 AM
RobiNew RobiNew is offline Fastest code to format footnote reference marks Windows 10 Fastest code to format footnote reference marks Office 2016
Competent Performer
Fastest code to format footnote reference marks
 
Join Date: Sep 2023
Posts: 183
RobiNew is on a distinguished road
Default

If I modify the style "Footnote Reference", do I get the existing reference numbers right?
Reply With Quote
  #4  
Old 12-19-2023, 09:31 AM
Italophile Italophile is offline Fastest code to format footnote reference marks Windows 11 Fastest code to format footnote reference marks Office 2021
Expert
 
Join Date: Mar 2022
Posts: 338
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

As you haven’t explained what you are trying to do I can’t tell you. But as you obviously don’t know what you can/can’t achieve by modifying the style you first need to spend some time experimenting with it to find out.
Reply With Quote
  #5  
Old 12-19-2023, 10:22 AM
RobiNew RobiNew is offline Fastest code to format footnote reference marks Windows 10 Fastest code to format footnote reference marks Office 2016
Competent Performer
Fastest code to format footnote reference marks
 
Join Date: Sep 2023
Posts: 183
RobiNew is on a distinguished road
Default

Very helpful. Thanks!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change superscripts to regular text except footnote marks without using 'Selection.' RobiNew Word VBA 7 10-01-2023 01:55 AM
Fastest code to format footnote reference marks Loop through Footnote Reference Marks Ramses505 Word VBA 6 09-21-2023 12:10 AM
Fastest code to format footnote reference marks Macro to change font size of Footnote Reference in Footnote Text TheBigBoss Word VBA 5 06-10-2022 06:14 AM
Fastest code to format footnote reference marks Reference number and cross reference for equation numbers to match the thesis format wmac Word 1 05-14-2013 08:54 PM
Fastest code to format footnote reference marks Fastest way to run a code b0x4it Word VBA 4 05-18-2011 07:54 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:30 PM.


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