Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-27-2017, 06:11 PM
ilcaa72 ilcaa72 is offline VBA, Place Sentence in its own Line Windows 7 64bit VBA, Place Sentence in its own Line Office 2013
Novice
VBA, Place Sentence in its own Line
 
Join Date: Jan 2014
Posts: 27
ilcaa72 is on a distinguished road
Default VBA, Place Sentence in its own Line

I have the following code. So its able to locate each sentence, but now I want to place the sentence in its own line. Not sure what to add to this VBA code to do that. thanks for any help.

Code:
Public Sub ParseDoc()
    Dim doc As Document
    Dim paras As Paragraphs
    Dim para As Paragraph
    Dim sents As Sentences
    Dim sent As Range
    Set doc = ActiveDocument
    Set paras = doc.Paragraphs
    
    For Each para In paras   
        Set sents = para.Range.Sentences

        For Each sent In sents
        
        'place sentence in its own line
        
        Next
    Next
End Sub
BEFORE
The Securities Exchange Act of 1934 was the second major piece of legislation. It resulted from the market crash of 1929. The Securities Exchange Act of 1934 regulates the secondary market. It consists of investor-to-investor transactions. All transactions between two investors that are executed on any of the exchanges. The over-the-counter (OTC) market are secondary market transactions.

AFTER
The Securities Exchange Act of 1934 was the second major piece of legislation.
It resulted from the market crash of 1929.
The Securities Exchange Act of 1934 regulates the secondary market.
It consists of investor-to-investor transactions.
All transactions between two investors that are executed on any of the exchanges.


The over-the-counter (OTC) market are secondary market transactions.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
MS word 2007, capital letter after number (1. place turn to 1. Place) enzo321 Word 1 10-23-2016 06:19 AM
sentence/line spacing.. rynegold Word 2 11-19-2014 12:36 AM
VBA, Place Sentence in its own Line Delete does not bring second sentence closer to first sentence Andoheb Word 29 07-03-2014 01:48 PM
VBA, Place Sentence in its own Line editing a number/text at one place and changes taking place wherever it appears anurag.butoliya Word 1 06-14-2014 06:27 PM
VBA, Place Sentence in its own Line Use macro to place line style around graphic AdvanceTheMan Word VBA 1 04-20-2012 08:18 PM

Other Forums: Access Forums

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