Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-04-2014, 05:44 AM
gmaxey gmaxey is offline Split a paragraph Windows 7 32bit Split a paragraph Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,601
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Classify such paragraphs how\what? Paragraphs start with sentences. Sentences start, typically with a capitalized word "Resume", "Continuance."



Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oPar As Paragraph
  For Each oPar In ActiveDocument.Paragraphs
    If oPar.Range.Words.Count < 2000 Then
      Select Case Trim(oPar.Range.Words(1))
        Case "Resume", "Continuance"
          MsgBox "Classify me how\hat?"
      End Select
    End If
  Next
lbl_Exit:
  Exit Sub
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Split Slide Akip Tsaqif PowerPoint 0 09-07-2014 10:50 PM
How to split .pst file annabrown8812 Outlook 1 10-03-2013 04:27 AM
Split a paragraph Narrow Paragraph to Wide Paragraph HELP icloudy Word 1 12-09-2012 03:49 PM
Split a task fridos Project 2 05-30-2011 11:19 AM

Other Forums: Access Forums

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