Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub InsertPicture(PicturePath as String, PlacementCell as Range)
' PicturePath will be the file path (from your range) ' PlacementCell is the cell where the top left of the picture will go Dim NewPic As Object Set NewPic = PlacementCell.Parent.Pictures.Insert(PicturePath) NewPic.Name = "Logo" ' allows you to easily refer to the picture in the future ' (i.e. ActiveSheet.Pictures("Logo")) NewPic.Top = PlacementCell.Top NewPic.Left = PlacementCell.Left End Sub -- - K Dales "Tan" wrote: I have a picture stored in a range name in an excel spreadsheet. I need a VBA to display the logo on a form. How can I go about doing it? In the form, do I define it as an image? If so, then how do I point the image to the range name? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hyperlink to an image in other worksheet, displaying entire image. | Excel Worksheet Functions | |||
Display Worksheet image on a form | Excel Programming | |||
Display Worksheet image on a form | Excel Programming | |||
Export the worksheet background image as an image file - possible? | Excel Programming | |||
Open image from web in window same size as image? | Excel Programming |