Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-19-2020, 09:02 AM
gmaxey gmaxey is offline Unindent Initial Chapter and Section Paragraphs in Novel Windows 10 Unindent Initial Chapter and Section Paragraphs in Novel Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,636
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Mr Bill,


This is a freebie, but this also isn't a code writing service and you should make some attempt before asking for the solution on a platter.

Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim oRng As Range
  Set oRng = ActiveDocument.Range
  With oRng.Find
    .Text = "Chapter [0-9]@"
    .MatchWildcards = True
     While .Execute
      oRng.Move wdParagraph, 2
      oRng.Paragraphs(1).Style = "Normal" 'You should create some named style for your first paragraphs and replace "Normal" with it.
      oRng.Collapse wdCollapseEnd
    Wend
  End With
lbl_Exit:
  Exit Sub
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter page references in paragraphs kenking Word 12 02-07-2020 03:33 PM
Adding chapter or section numbers to 'Page Number' JStephens3 Word 2 07-02-2019 01:45 PM
Unindent Initial Chapter and Section Paragraphs in Novel Footer: chapter and section names tropaj Word 7 05-22-2019 03:56 PM
Need "Section 1" numbering which is followed by 1.1 Chapter titles and 1.2.3 subs xmlgirl Word 1 02-26-2014 12:31 AM
using odd-Even chapter footers with page number and chapter titles Fossils13 Word 0 07-17-2010 06:49 AM

Other Forums: Access Forums

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