Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-14-2018, 03:13 AM
oldyeller1938 oldyeller1938 is offline Putting 3 verses of scripture into a Word doc Windows 10 Putting 3 verses of scripture into a Word doc Office 2003
Novice
Putting 3 verses of scripture into a Word doc
 
Join Date: Nov 2016
Location: Illinois
Posts: 12
oldyeller1938 is on a distinguished road
Default Putting 3 verses of scripture into a Word doc

I have a project ongoing putting 3 verses of scripture into a Word doc. This is an example of what I would like to do: I want a space between GENESIS 44 followed by 3 verses. Can that be done with the Ctrl+H dialog? Can it be done with the entire chapter in 1 step rather than 3 verses at a time?



GENESIS 44
22 And we said to my lord, 'The lad cannot leave his father, for if he should leave his father, his father would die.' 23 But you said to your servants, 'Unless your youngest brother comes down with you, you shall see my face no more.'24 "So it was, when we went up to your servant my father, that we told him the words of my lord.

GENESIS 44
25 And our father said, 'Go back and buy us a little food.' 26 But we said, 'We cannot go down; if our youngest brother is with us, then we will go down; for we may not see the man's face unless our youngest brother is with us.' 27 Then your servant my father said to us, 'You know that my wife bore me two sons;
Attached Files
File Type: doc 3 verses of scripture into a Word doc.doc (24.0 KB, 9 views)
Reply With Quote
  #2  
Old 05-14-2018, 03:35 AM
gmayor's Avatar
gmayor gmayor is offline Putting 3 verses of scripture into a Word doc Windows 10 Putting 3 verses of scripture into a Word doc Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,106
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Based on your example, a simple macro should do the job

Code:
Sub Macro1()
Dim oRng As Range
    Set oRng = ActiveDocument.Range
    With oRng.Find
        Do While .Execute(FindText:="[0-9]{1,}", MatchWildcards:=True)
            If Not oRng.Start = oRng.Paragraphs(1).Range.Start And _
               Not oRng.End = oRng.Paragraphs(1).Range.End - 1 Then
                oRng.InsertParagraphBefore
                oRng.Collapse 0
            End If
        Loop
    End With
lbl_Exit:
    Set oRng = Nothing
    Exit Sub
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Putting 3 verses of scripture into a Word doc Adding Bible Verses in Header + Page Number JohnAnthonyWolf Word 7 11-04-2022 06:22 AM
Putting 3 verses of scripture into a Word doc Scripture Index WJSwan Word VBA 5 03-31-2018 02:35 AM
Putting writing next to an image on Word for CV HELP :(! ParisP Word 3 05-29-2015 09:53 AM
Putting 3 verses of scripture into a Word doc Help with putting footers into all but the first section in Word 2010 Maghdalena Word 3 12-05-2013 09:55 PM
Putting borders around more than one photo in a word document IPKG Word 0 07-28-2013 02:28 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:28 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft