Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-12-2021, 03:20 PM
Rolo18 Rolo18 is offline Removing and replacing XML file words returning blank spaces/linebreaks Windows 10 Removing and replacing XML file words returning blank spaces/linebreaks Office 2016
Novice
Removing and replacing XML file words returning blank spaces/linebreaks
 
Join Date: Mar 2020
Posts: 20
Rolo18 is on a distinguished road
Default Removing and replacing XML file words returning blank spaces/linebreaks

Hi,

I currently have a script for a Macro that changes or deletes multiple XML files words or sentences.
Although when I run this Macro whenever it deletes a certain word or sentence it is leaving blank lines/paragraphs.
For example:
<content>

<pmEntryTitle>EHII IETM</pmEntryTitle>





<pmEntryTitle> General Front Matter</pmEntryTitle>

<pmEntryTitle> Title Page</pmEntryTitle>

Does anyone have a solution or work around that I can add to my current script so when I run the macro all together it fixes it like this:
<content>
<pmEntryTitle>EHII IETM</pmEntryTitle>
<pmEntryTitle> General Front Matter</pmEntryTitle>
<pmEntryTitle> Title Page</pmEntryTitle>


Thanks for any help.
Reply With Quote
 

Tags
macro, vba, xml



Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing/Removing XML file lines Rolo18 Word VBA 2 07-01-2020 05:07 PM
Removing and replacing XML file words returning blank spaces/linebreaks How to remove blank spaces from word file noname Word 5 11-02-2019 10:49 PM
Removing and replacing XML file words returning blank spaces/linebreaks Removing indentations at beginning of paragraphs and replacing with line spaces captainamerica Word 2 10-27-2017 05:32 PM
Removing and replacing XML file words returning blank spaces/linebreaks removing spaces in cell Tonykiwi Excel 4 11-06-2016 09:30 PM
Invalid Pattern Match Value for Replacing Spaces sleake Word 2 04-26-2013 11:26 AM

Other Forums: Access Forums

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