Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 26
  • Last Modified:

Outlook - Adding a signature

I have a script that is creating an signature based off of AD properties.

Pulling all the information in is working.

However I need to add a corporate logo.

It is pulling from a web address and I need to put into the script to link to the file instead of just embedding the file. So if the file were to change, the image changes as well.

This is what I have now but it just embeds the file
set objShape = objSelection.InlineShapes.AddPicture("file path")

Help!
0
awgit
Asked:
awgit
2 Solutions
 
David Johnson, CD, MVPOwnerCommented:
0
 
Hendrik WieseCommented:
Your filepath will be the http:// location of the image.

Try the following:

'Company Logo
objShape.Item(1).height = 42
objShape.Item(1).width = 316
Set objLink = objSelection.Hyperlinks.Add(objSelection.InlineShapes.AddPicture("filepath"), "http://yourlink.com/",,,"")

Open in new window


Hope this helps!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now