Publishing to HTML with Anchored Images

GleamTheCube

New Member
Joined
Jul 26, 2011
Messages
2
I have a macro that publishes a range to a sharepoint. There is conditional formatting in a few cells that show a green check mark when viewed in Excel. Upon publishing these turn into numbers.
What I'm trying to accomplish is to clear those cells and replace the numbers with anchored images that are stored on the sharepoint.
First I tried to insert normal html into the cell, but when viewed in sharepoint there are quotes around the img tags.
The last thing I tried was to add a .Shapes.AddPictures call to the cells in question with the filename set to the location of the image. This throws a 1004 error.
I'm stumped on whether this is even possible to do.
Basically all I want is to have a static html view of a range, but with img src... in a few cells which references the image stored on the same sharepoint.

Can anyone help?
 
Last edited:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,224,606
Messages
6,179,862
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top