Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-23-2020, 09:01 AM
Leslie Leslie is offline Append text at the end of text lines (not after images) only. Windows 8 Append text at the end of text lines (not after images) only. Office 2010
Novice
Append text at the end of text lines (not after images) only.
 
Join Date: Oct 2019
Posts: 13
Leslie is on a distinguished road
Default Append text at the end of text lines (not after images) only.

Nice day.



How to append '<BR>' at end of each and every alternate line but not after image lines.
Odd lines contain text content (need to append).
Even lines contain image content (not to append).

Image attached for reference.



Sample file attached.

Help appreciated.

Thank you.
Attached Files
File Type: doc BR inclusion at the EOL.doc (129.5 KB, 8 views)
Reply With Quote
  #2  
Old 02-23-2020, 03:00 PM
macropod's Avatar
macropod macropod is offline Append text at the end of text lines (not after images) only. Windows 7 64bit Append text at the end of text lines (not after images) only. Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Since there are no line-breaks after your images, all you need is an ordinary Find/Replace, where:
Find = ^l
Replace = <BR>^l
No code required.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 02-23-2020, 03:34 PM
Leslie Leslie is offline Append text at the end of text lines (not after images) only. Windows 8 Append text at the end of text lines (not after images) only. Office 2010
Novice
Append text at the end of text lines (not after images) only.
 
Join Date: Oct 2019
Posts: 13
Leslie is on a distinguished road
Thumbs up

Quote:
Originally Posted by macropod View Post
Since there are no line-breaks after your images, all you need is an ordinary Find/Replace, where:
Find = ^l
Replace = <BR>^l
No code required.
GREAT, worked out nicely! You rocked as usual @macropod.
Kudos to you!! Thanks so much.
Reply With Quote
Reply

Tags
append, macro

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Append values from a MS Word form to an existing CSV or text file markiko Word VBA 1 07-11-2019 09:58 PM
Append text at the end of text lines (not after images) only. Macro to append text to end of paragraphs/lines where target text is found. moorea21 Word VBA 8 06-20-2018 12:52 AM
Append text at the end of text lines (not after images) only. How do I programmatically insert and append the text from AutoText 0002 to the end of the existing t erik816 Word VBA 1 03-09-2016 12:48 AM
Append text to a sentence containing specific word dgp Word VBA 3 02-28-2014 10:38 PM
Append text to a cell with color gvdm Excel 1 04-17-2012 10:21 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft