Removing path of inserted images

gunter511

New Member
Joined
Feb 16, 2021
Messages
5
Office Version
  1. 365
Platform
  1. MacOS
I managed to insert many images via url links into a column of an excel worksheet using VBA (cut & pasted from a script I found online). Sometimes this message appears: "The linked image cannot be displayed. The file may have moved etc. etc." I assume this means the path is still there. How would I go about removing the paths of all the images so they always display correctly?
Many thanks!
Gunter
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Check to see if the links are still valid. I think the images are no longer there.
 
Upvote 0
Check to see if the links are still valid. I think the images are no longer there.
Thank you for your reply.

THe problem is that sometimes the images appear and sometimes they don't. e.g. if you scroll up or down the page, an image may appear
or not. I removed the column which had the original url to download the images but I don't know how to remove the links. When I click
on a cell with an image, it does not appear to have a hyperlink but the image may still be visible.

Would you be able to help in explaining if, somehow, the path is still embedded, how I would remove it?
The file was originally a macros enabled one but it is now saved as an .xlsx one.

Many thanks!!
 
Upvote 0
Would you post the script? Maybe it can be improved.
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,269
Members
449,075
Latest member
staticfluids

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