Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hyperlinks

Status
Not open for further replies.

outlookman

Technical User
Aug 5, 2005
30
0
0
US
I have written a simple script to dynamically create Outlook signatures for a group. I have everything working properly, but I cannot seem to insert a hyperlink to the web or email. I am using VBScript to create an instance of Microsoft Word. I then populate the Word document with all of the information and then save it as a signature in Outlook.

I am not very familiar with VBScript. Batch, C, & C++ are my fortes. Below is the code.

objSelection.TypeText strWeb - This just displays the text. I need it as a hyperlink.

 
You may try something like this:
objYourWordDocument.Hyperlinks.Add objSelection.Range, strWeb, "", "", strWeb

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Awesome!

It was so simple. I tried referencing everything except the actual Word instance. Doh!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top