putting an jpg into a cell

Peterso

Board Regular
Joined
Nov 28, 2012
Messages
113
I am using office 365 in which the excel have a function which I can past a jpg picture into a cell. I would like to know if excel 2021 version have this function? if not, is there any way to do it in excel 2021? Thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Do you mean inserting a picture from a folder and pasting it in a cell with the picture dimensions being the cell dimension?
 
Upvote 0
On the Insert tab..., try:
Screen Shot 2024-05-16 at 12.42.45 AM.png
 
Upvote 0
For any version. I am not prejudiced against any other versions.
This will put a picture in G12, Cells(12, 7), and size it to the cell dimensions.
Code:
Sub Insert_Pic()
    ActiveSheet.Shapes.AddPicture "C:\Folder Name Here\Picture Name Here.jpg", False, True, Cells(12, 7).Left, Cells(12, 7).Top, Cells(12, 7).Width, Cells(12, 7).Height
End Sub
 
Upvote 0

Forum statistics

Threads
1,221,709
Messages
6,161,431
Members
451,705
Latest member
Priti_190

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