Non-linked picture gives “linked image cannot be displayed” (1 Viewer)

rehanemis

Registered User.
Local time
Today, 18:04
Joined
Apr 7, 2014
Messages
195
I have excel with images in cells. When send the file to other it shows broken links as I just imbedded the excel sheet. So I have more than 150 pictures as I want any vba solution if images are linked then embed.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 09:04
Joined
Feb 28, 2001
Messages
27,205
If the cells's images were linked then of course you would need to send the external images to go with the workbook.

One solution might be that you have the links as relative to the current workbook location. I.e. instead of C:\MyPics\JoeSchlabotnik.JPG you could use .\XLPics\JoeSchlabotnik.JPG as the link reference. Then when you copy over the workbook, copy the subfolder. Make them a ZIP file or something like that and when you unzip, you not only copy the workbook but you copy the subfolder.

Note that I'm guessing as to your intention, but I am answering with a way for the pictures to follow the workbook if you are sharing by file copy. If that ISN'T what you meant, you'll have to be more specific.
 

rehanemis

Registered User.
Local time
Today, 18:04
Joined
Apr 7, 2014
Messages
195
Thanks for your reply.
I am attached excel sheet with some rows for your review.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 09:04
Joined
Feb 28, 2001
Messages
27,205
Attachment didn't show up.
 

rehanemis

Registered User.
Local time
Today, 18:04
Joined
Apr 7, 2014
Messages
195
sorry, I tried but can't attach.
So can you please share a method vba to convert already inserted images to imbedded images?
 

KitaYama

Well-known member
Local time
Today, 23:04
Joined
Jan 6, 2022
Messages
1,552
When you click Insert tab - Illustrations - Pictures - This Device
You must select Insert if you want to embed the image :

2022-06-03_14-50-47.png
 

rehanemis

Registered User.
Local time
Today, 18:04
Joined
Apr 7, 2014
Messages
195
Thanks KitaYama,
But currently I have many images inserted and would like embed the current images which are excel cells. So how to do ?
 

KitaYama

Well-known member
Local time
Today, 23:04
Joined
Jan 6, 2022
Messages
1,552
Thanks KitaYama,
But currently I have many images inserted and would like embed the current images which are excel cells. So how to do ?

Personally I do it manually.
1- Click one of the images
2- press ctrl+A (to select all images)
3- Press ctrl+x (to cut all images)
4- Press ctrl+v
5- Without releasing the selected images, move one of the images to its previous location and unselect all images.
 
Last edited:

rehanemis

Registered User.
Local time
Today, 18:04
Joined
Apr 7, 2014
Messages
195
Not works

Personally I do it manually.
1- Click one of the images
2- press ctrl+A (to select all images)
3- Press ctrl+x (to cut all images)
4- Press ctrl+v
5- Without releasing the selected images, move one of the images to its previous location and unselect all images.
 

Users who are viewing this thread

Top Bottom