Tough one - image and embedded html document

X

xp

In a hidden Excel sheet I have embedded an HTML document which I then launch
when a button is clicked. This html document is custom help for the program
contained in the file. It all works very nicely.

What I would like to be able to do is incorporate a screen shot or two in
the html help file, the problem is, you would normally reference images to
appear in html using an anchor such as <a href="MyPath\to\MyFile.jpg">.

Since I want all of the help to be self-contained or on-board in the program
file itself, does anyone know how I can paste image(s) into a spread sheet
and then reference it in my html document to make it appear in the help file
when opened?

Thanks for your help!
 
X

xp

Sorry, I was thinking Image but wrote code for hyperlink.

The code to insert an image in html is <img src="MyPath\to\MyImage.jpg">

But, my original question still stands...any ideas?
 
J

Joel

If you activate (obj.activate) the imbedded file will launch an ie
application. You can get the tag (img) using the following

Set myimage = IE.Document.getElementsByTagName("img")
 
T

Tim Williams

Windows only ? If so, you could maybe try an MHT file (contains the images,
encoded in Base64 [?])

You could do this by saving your HTML file (with local images loaded) as
*.mht and then embedding that instead of a plain html file.

Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top