I tried to run this macro but it gives me an error.
Sub Translate()
Dim sDoc As String
sDoc = ActiveDocument.DocumentHTML
'
' then use the VB verb replace as required
'
sDoc = Replace(sDoc, "Round", "Kolo")
ActiveDocment.DocumentHTML = sDoc -----> Runtime error 424 Object Required
End Sub
Sorry its may be trivial but I am not a programmer.
This script is for replacing one word. How I can replace more words?
Can I do it like this?
:
Sub Translate()
Dim sDoc As String
Dim sDoc2 As String
sDoc = ActiveDocument.DocumentHTML
'
' then use the VB verb replace as required
'
sDoc = Replace(sDoc, "Word1", "Word1_1")
ActiveDocment.DocumentHTML = sDoc
sDoc2 = ActiveDocument.DocumentHTML
'
' then use the VB verb replace as required
'
sDoc2 = Replace(sDoc2, "Word2", "Word2_2")
ActiveDocment.DocumentHTML = sDoc
..
..
..
..
..
End Sub
Thank you
Tihomir Borovcak