Sep 27, 2001 #1 diembi Programmer Sep 22, 2001 238 ES Hello people!!! How can i goto a bootmark in a word doc from vbscript and replace it with "hello"? Thanks!!!
Hello people!!! How can i goto a bootmark in a word doc from vbscript and replace it with "hello"? Thanks!!!
Sep 27, 2001 Thread starter #2 diembi Programmer Sep 22, 2001 238 ES The answer is the next code: (This code replace the text in pacicodi marc with the text "hello" ... ... Set oSelection = oWD.Selection oSelection.Range.Start = 0 oSelection.Range.End = 0 campo = "pacicodi" oSelection.GoTo -1,,, "pacicodi" oSelection.Select() oSelection.TypeText("hello" ... ... Bye!! Upvote 0 Downvote
The answer is the next code: (This code replace the text in pacicodi marc with the text "hello" ... ... Set oSelection = oWD.Selection oSelection.Range.Start = 0 oSelection.Range.End = 0 campo = "pacicodi" oSelection.GoTo -1,,, "pacicodi" oSelection.Select() oSelection.TypeText("hello" ... ... Bye!!