View Single Post
 
Old 03-20-2021, 07:36 AM
gmaxey gmaxey is offline Windows 10 Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

You are in the wrong story range


Code:
Sub Podpisi()
Dim oRng As Range
 Set oRng = ActiveDocument.StoryRanges(wdTextFrameStory)
 With oRng.Find
   .Execute FindText:="help", ReplaceWith:="Mr." & vbCr & "Adrian Tomc", _
 Format:=True, Replace:=wdReplaceAll
End With
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote