Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-30-2021, 08:50 PM
gmayor's Avatar
gmayor gmayor is offline VBA find replace within a line break Windows 10 VBA find replace within a line break Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Code:
changedXml = Replace(strXml, "</graphic>" & Chr(11) & "</figure>" & Chr(11) & "</foldout>", "reproductionWidth=*+1")
works to change the string, but whether it will change the text in your document rather depends on what you do with changedXml subsequently.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA find replace within a line break Find and Replace not capturing entire line Steve Kunkel Word VBA 7 04-22-2021 10:00 AM
VBA find replace within a line break Find and Replace Line Spacing farisca Word 2 06-18-2020 04:02 PM
VBA find replace within a line break Find / Replace hard Carriage Return with Line break. GreenBoy Word 2 03-11-2018 02:32 AM
Interchange line break and paragraph break shortcut keys skan Word 2 01-20-2017 03:50 AM
VBA find replace within a line break Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM

Other Forums: Access Forums

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