
xtr3mz - 2020-03-17 09:47:29 -
In reply to message 2 from Neeraj Thakur
this class is awesome!
How to replace texts from a PHP array? or how to convert VBA code to php usable code?
eg. PHP array
$arr=array("text1"=>"replacement1","text2"=>"replacement2");
VBA:
With ActiveDocument.Content.Find
.ClearFormatting
.Text = "hi"
.Replacement.ClearFormatting
.Replacement.Text = "hello"
.Execute Replace:=wdReplaceAll, Forward:=True, _
Wrap:=wdFindContinue
End With
thanks a lot