Inserting Picture in Excel

Kingfysh

New Member
Joined
Sep 15, 2011
Messages
1
I know this is mentioned in other posts, but we (my office) can't seem to make it work. We are trying to create a form that will allow us to insert four pictures into excel through the use of a button on the spreadsheet. None of us are well versed at writing code within Excel, but we have been able to get to the developer mode and give it a shot. Can somebody help?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
You could assign the code below to a button. You would just need to change the code to point to your pictures.


Sub Macro1()

Range("A1").Select
ActiveSheet.Pictures.Insert("H:\Picture1.jpg").Select

Range("A11").Select
ActiveSheet.Pictures.Insert("H:\Picture2.jpg").Select

Range("A21").Select
ActiveSheet.Pictures.Insert("H:\Picture3.jpg").Select

Range("A31").Select
ActiveSheet.Pictures.Insert("H:\Picture4.jpg").Select

End Sub
 
Upvote 0

Forum statistics

Threads
1,224,558
Messages
6,179,512
Members
452,921
Latest member
BBQKING

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