insert Picture

bluenose5709

New Member
Joined
Dec 15, 2012
Messages
34
Office Version
  1. 365
  2. 2024
Platform
  1. Windows
  2. MacOS
  3. Web
Hi,

I hope that someone may be able to point me in the right direction.

I am working upon a spreadsheet (Excel 365) that has images inserted not cells as can be seen by the cropped image below. this is working fine, however i can't figure out where the image is from...? when selecting the cell it simply says Picture in the formula bar but nothing else. If i download the workbook to my local machine, all cells that had images change to say UNKNOWN!

my question is how do i figure out how th images were put there in the first instance and where are they residing so that i may re-create the same elsewhere / add more cells with images in the same Worksheet...

1735403189761.png


thank you
 

Attachments

  • 1735403147620.png
    1735403147620.png
    38.4 KB · Views: 3

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Sometimes the path may be stored in the "Alternative Text" field of the image properties. You could query for that data.
I am not aware of any means to determine the path of an image once it has been placed in a worksheet except for the following ...

Alternatively, you could use the following macro to initially select an image to be inserted into a worksheet. This macro accomplishes that chore and
inserts the image path adjacent to the image.

VBA Code:
Option Explicit

Sub InsertImageAndRecordPath()
Dim ws As Worksheet
Dim imgPath As String
Dim img As Picture
Dim cell As Range

' Set the worksheet
Set ws = ThisWorkbook.Sheets("Sheet1")

' Prompt user to select an image file
imgPath = Application.GetOpenFilename("Image Files (*.jpg; *.jpeg; *.png; *.bmp), *.jpg; *.jpeg; *.png; *.bmp", , "Select an Image")

' Check if the user selected a file If imgPath = "False" Then Exit Sub

' Select the cell where you want to insert the image
Set cell = ws.Range("A1")

' Change this to your desired cell ' Insert the image
Set img = ws.Pictures.Insert(imgPath)
img.Top = cell.Top
img.Left = cell.Left
img.Placement = xlMoveAndSize

' Store the file path in the cell next to the image
cell.Offset(0, 1).Value = imgPath

End Sub
 
Upvote 0

Forum statistics

Threads
1,225,072
Messages
6,182,699
Members
453,132
Latest member
nsnodgrass73

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