Outlook Signature Script help (vbscript)

Platinum

New Member
I created a script that creates a signature for outlook. It runs at logon and I'm trying to get it to insert a link if users are in a certain department. The link is inserted correctly but inserts at a default font size and color. I want the size to be 8 and color to be red.

IF strDepartment = "Returns" THEN
ObjSelection.Font.Size = "8"
ObjSelection.Font.Color = RGB(255,0,0)
ObjLink = ObjDoc.Hyperlinks.Add(objSelection.Range, "https://www.website.com",,, "Website Text Here")
ObjSelection.Font.Color = RGB(0,0,0)
objSelection.TypeText Chr(11)
End IF
obj.Selection.TypeText Chr(11)

Can someone help me out here? I'm really stuck. I'm not a scripter, kinda just goin off the internet and my basic knowledge. I tried putting the color and size in the parenthesis before the link, tried changing the object name to ObjLink instead of selection. Should objLink be different? I really don't know.

Thanks
 

ramabel

New Member
Any Solution?

Hi,

did you get any solution?

I am having the same problem as you had?
Always get the link underlined and with blue color...

Any suggestion?

Thanks in advance,
Ramon
 
Top