Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-29-2018, 11:47 PM
risomd risomd is offline Removing trailing spaces from footnotes Windows 7 64bit Removing trailing spaces from footnotes Office 2016
Novice
Removing trailing spaces from footnotes
 
Join Date: Aug 2018
Posts: 6
risomd is on a distinguished road
Default


Using the wdFootnotesStory was something I also explored, but it didn't let me focus on individual footnotes. I'm trying to get fine grained control, and am removing the end spaces to learn how best to do that.

If a footnote ends in space(s) then I want to remove those spaces, hyperlink or not.

But the last space(s) might not be in a Hyperlink.TextToDisplay, so I do not want to trim spaces from all hyperlinks since their spaces may be separating words between Hyperlinks and non hyperlink text. (A footnote can have many hyperlinks within text)

But if the last space is not in a hyperlink, and by removing that space the end space may then become one at the end of a Hyperlink, and then it would need to be removed.


Same with paragraphs. A footnote could have multiple paragraphs but only the trailing space(s) at the end of the final one of the footnote should be removed.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing trailing spaces from footnotes Removing spaces in activedocument after empty bookmarks faustino909 Word VBA 2 08-03-2018 01:34 PM
Removing trailing spaces from footnotes How to remove trailing & leading spaces in a cell? LearnerExcel Excel Programming 8 02-04-2018 08:22 PM
Removing trailing spaces from footnotes removing spaces in cell Tonykiwi Excel 4 11-06-2016 09:30 PM
Removing trailing spaces from footnotes Mail Merge - Trailing Spaces osucjb Mail Merge 5 10-28-2016 12:03 AM
Word-Help with removing unwanted spaces in text greshoff Word 9 12-30-2011 03:24 PM

Other Forums: Access Forums

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