Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 08-25-2019, 02:49 PM
eduzs eduzs is offline Hide footnote numbering with vba Windows 10 Hide footnote numbering with vba Office 2010 32bit
Expert
Hide footnote numbering with vba
 
Join Date: May 2017
Posts: 266
eduzs is on a distinguished road
Default

Quote:
Originally Posted by jjfreedman View Post
Sorry, running the same code (or modifying the style through the Modify Style dialog) here does hide the numbers. Can you verify that the numbers in your document actually have the Footnote Reference style applied to them? That's the default behavior of the References > Insert Footnote button, but yours could have been inserted some other way.
Thanks! Just need to add this line and now it's working:
Code:
activedocument.Styles(wdStyleFootnoteReference).Font.Hidden=false
activedocument.ActiveWindow.View.ShowHiddenText=False
Now I'm looking for a way to get rid of the blank space (chr(32)) before the footnote text.
This is not working (it's removing entire footnote):
Code:
ActiveDocument.Footnotes(1).Reference.Text = Replace(ActiveDocument.Footnotes(1).Reference.Text, Chr(32), "")
Thanks!

Last edited by eduzs; 08-25-2019 at 06:14 PM.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide footnote numbering with vba Adding footnote number as part of footnote text NoCalScribe Word VBA 3 07-15-2019 07:20 PM
Hide footnote numbering with vba Problem with footnote numbering -- Two different footnote levels mdhg Word 7 05-19-2016 06:33 AM
Hide footnote numbering with vba How to change the font of footnote numbering? mudum Word 2 12-03-2015 06:27 AM
Hide footnote numbering with vba Footnote numbering problem within single section jsswadley Word 2 03-17-2015 04:44 PM
Footnote get double numbering malgorzata Word 2 12-12-2014 12:45 AM

Other Forums: Access Forums

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