View Single Post
 
Old 03-20-2021, 07:09 AM
onsight onsight is offline Windows 10 Office 2016
Novice
 
Join Date: Mar 2021
Posts: 9
onsight is on a distinguished road
Default Macro doesnt work inside textbox

I use this macro to change specific text, but it doesnt work, when text is inside text boxes. If text is in table cell, then macro work fine. What I must change in code, that will affect text in text boxes too, not just in table cell?
This is code:
Code:
Sub Podpisi()
With ActiveDocument.Content.Find
 .Execute FindText:="blue", ReplaceWith:="Mr." & vbCr & "Adrian Tomc", _
 Format:=True, Replace:=wdReplaceAll
End With
End Sub
Reply With Quote