Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-11-2022, 09:06 PM
BrianHoard BrianHoard is offline How can I expand the range of an endnote with multiple paragraphs in the text? Windows 10 How can I expand the range of an endnote with multiple paragraphs in the text? Office 2019
Advanced Beginner
How can I expand the range of an endnote with multiple paragraphs in the text?
 
Join Date: Jul 2022
Location: Haymarket, VA USA
Posts: 85
BrianHoard is on a distinguished road
Default How can I expand the range of an endnote with multiple paragraphs in the text?

I am working on my first VBA script which needs to copy the reference text of each endnote. I'm able to set a range for the endnote reference text fine except when the writer's have added multiple paragraphs. I am currently expanding my range to the end of the paragraph, however it only expands the end of the range to the first paragraph. Is it possible to expand the range to multiple paragraphs? Here's my code for getting the range now:


Code:
  rng_source.Expand Unit:=wdParagraph

Here's an example of a typical endnote. The # represents where the endnote superScript would be. Notice the writers put text (ABC) before the endnote number:
(ABC) #Some text paragraph1
Possible additional text paragraph2
paragraph3, etc.


(XYZ) #Next endnote. Could have only 1 or more paragraphs.
Reply With Quote
 

Tags
endnote reference, range



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I expand the range of an endnote with multiple paragraphs in the text? How can I select all the text in a table cell when it contains multiple paragraphs? wrdy Word 4 05-18-2022 12:25 AM
Loop to Collapse Paragraphs within Range Not Working poetofpiano Word VBA 1 03-11-2018 06:29 PM
How can I expand the range of an endnote with multiple paragraphs in the text? Endnote and in-text citations in Word nato2015 Word 1 07-04-2015 03:35 PM
endnote and import reference from word to endnote uncung Word 0 06-18-2011 08:09 AM
How can I expand the range of an endnote with multiple paragraphs in the text? Cross-reference endnote text smed Word 3 01-14-2011 03:34 PM

Other Forums: Access Forums

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