A
Ariel
I have the following code working fine to insert one hyperlink, however, (1)
I can't get the cursor to move to the end of the inserted hyperlink, and (2)
I can't get figure our how to insert another hyperlink (or several more)
after the first one.
Any help is appreciated.
Sub Hyper ()
Dim WordApp As Word.Application
Dim WordDoc As Word.Document
Set WordApp = New Word.Application
Set WordDoc = WordApp.Documents.Add
WordApp.Visible = True
With WordDoc
Dim rng As Word.Range
Set rng = .Range
.Hyperlinks.Add Anchor:=rng, Address:= _
"http://www.caxvd.com/", SubAddress:="", _
ScreenTip:="", TextToDisplay:="Treatment"
End With
End Sub
I can't get the cursor to move to the end of the inserted hyperlink, and (2)
I can't get figure our how to insert another hyperlink (or several more)
after the first one.
Any help is appreciated.
Sub Hyper ()
Dim WordApp As Word.Application
Dim WordDoc As Word.Document
Set WordApp = New Word.Application
Set WordDoc = WordApp.Documents.Add
WordApp.Visible = True
With WordDoc
Dim rng As Word.Range
Set rng = .Range
.Hyperlinks.Add Anchor:=rng, Address:= _
"http://www.caxvd.com/", SubAddress:="", _
ScreenTip:="", TextToDisplay:="Treatment"
End With
End Sub