A
annasProgram
I defined a macro that replaces a selected text in a document with a
hyperlink. Depending on the marked text I want apply to the hyperlink
different properties, such as different color.
My question is how can I modify the properties of a hyperlink so that:
1. the hyperlink will be marked with a double line colored with green
2. the hyperlink will appear as it is e.g. capital letters
Another problem which I tried to overcome is how to change the address of
the hyperlink so it will open a new form.
The following code doesn’t work due to incomparable types in Address:
Dim oHpl As Hyperlink
Set oHpl = ActiveDocument.Hyperlinks.Add _
(Selection.Range, Address:=myForm.Show, TextToDisplay:=Selection)
Does Address only links to documents and websites or is possible to link the
hyperlink to a form? In this case how can this be accomplished?
Thank you in advance
Hanna
hyperlink. Depending on the marked text I want apply to the hyperlink
different properties, such as different color.
My question is how can I modify the properties of a hyperlink so that:
1. the hyperlink will be marked with a double line colored with green
2. the hyperlink will appear as it is e.g. capital letters
Another problem which I tried to overcome is how to change the address of
the hyperlink so it will open a new form.
The following code doesn’t work due to incomparable types in Address:
Dim oHpl As Hyperlink
Set oHpl = ActiveDocument.Hyperlinks.Add _
(Selection.Range, Address:=myForm.Show, TextToDisplay:=Selection)
Does Address only links to documents and websites or is possible to link the
hyperlink to a form? In this case how can this be accomplished?
Thank you in advance
Hanna