Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Friday, January 15, 2016 at 12:37:33 PM UTC, Robert Crandal wrote:
See if this works for you: Sub myImageEmbed() Dim fn As Variant fn = Application.GetOpenFilename(FileFilter:="JPEG Files (*.JPG), *.JPG", Title:="Select File To Be Opened") Set myDocument = Worksheets(1) If fn = False Then ' Do nothing if no file selected Else ' Set image position and size here myDocument.Shapes.AddPicture fn, True, True, 100, 100, 70, 70 End If End Sub Absolutely spot on! Many thanks Robert. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Connect a number to a picture bank and import that picture to exce | Excel Discussion (Misc queries) | |||
Chart Picture Size in UserForm/Picture Control. | Excel Programming | |||
Delete earlier 'Picture' version when new picture copied in | Excel Programming | |||
insert a picture in to a comment but picture not save on hard disk | Excel Discussion (Misc queries) | |||
embedding picture or object in a cell | Excel Programming |