Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 03-10-2024, 07:50 AM
ctviggen ctviggen is offline Deleting the first word of a second paragraph Windows 10 Deleting the first word of a second paragraph Office 2016
Advanced Beginner
Deleting the first word of a second paragraph
 
Join Date: Feb 2021
Posts: 54
ctviggen is on a distinguished road
Default

I tried to get this done, and I'm getting closer, but I have to go to family stuff. I'll see if I can come back to this.


But, in pseudo-code, this is what I'm trying to do (where the variable oRng has the range of everything I've added/pasted in):



1- Go to the second paragraph of the range oRng
2- Start at the beginning of the paragraph, go 8 characters or to the character before the word "Example". Select these characters.
3- Delete the selected characters.



Seems super easy, but is harder than it appears.



Thank you for the help.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting all text from a slide pack without deleting the formatting redordead2389 PowerPoint 0 05-31-2023 06:50 AM
Deleting the first word of a second paragraph Word macro for deleting a line that starts with a specific character + deleting the line before eduardb Word 1 08-10-2022 03:17 AM
Inserting text from a Userform into a Field in a paragraph in a paragraph in a word document storemaz Word VBA 1 03-13-2020 08:11 AM
Deleting the first word of a second paragraph Deleting paragraph commands afndst Word VBA 2 12-30-2015 02:07 AM
Deleting the first word of a second paragraph Deleting a script in an equation without deleting the whole term allankey Word 1 02-15-2014 07:09 AM

Other Forums: Access Forums

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