Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 03-07-2016, 12:06 AM
poetofpiano poetofpiano is offline Help Writing more Customized Command to Select Next Sentence in Microsoft Word Windows 8 Help Writing more Customized Command to Select Next Sentence in Microsoft Word Office 2013
Novice
Help Writing more Customized Command to Select Next Sentence in Microsoft Word
 
Join Date: Sep 2015
Posts: 25
poetofpiano is on a distinguished road
Default

Figured out a piece of the puzzle. The following extends the current selection to the next instance of ". ":
Code:
    Selection.Extend
    Selection.Find.ClearFormatting
    With Selection.Find
        .Text = ". "
        .Replacement.Text = ""
        .Forward = True
        .Wrap = wdFindAsk
    End With
    Selection.Find.Execute
Now I just need to add exclusions and also include the paragraph symbol as a match for the search, and then just put it all together. Again, thanks again to anyone who can help!
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Select backstage Print command programmatically NobodysPerfect Excel Programming 0 04-23-2015 08:52 AM
Select the whole sentence when a word has been modified gloos Word VBA 1 04-14-2015 10:24 PM
Help Writing more Customized Command to Select Next Sentence in Microsoft Word VBA code for Microsoft Word macro — select text and insert footnote ndnd Word VBA 10 01-06-2015 01:47 PM
Help Writing more Customized Command to Select Next Sentence in Microsoft Word Writing fractions using the Mathematics programme of Microsoft Word 2010 Microsoftenquirer1000 Word 8 11-19-2014 02:10 PM
Microsoft Word 2003: casual style from the writing box? intooutfrom Word 0 01-04-2010 01:52 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:47 AM.


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