Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Adding OLE objects from VBA in Excel
I want to generate a number of images of a sheet from code. I can
create the image boxes exactly as I want but CANNOT work out how to add the pictures from code. Can anyone help me please? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Adding OLE objects from VBA in Excel
Neil,
Try something like Dim WS As Worksheet Dim SHP As Shape Set WS = ActiveSheet With WS.Range("C3") Set SHP = WS.Shapes.AddPicture(Filename:="C:\wires.jpg", linktofile:=False, _ savewithdocument:=True, Top:=.Top, Left:=.Left, Width:=100, Height:=100) End With -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Neil" wrote in message om... I want to generate a number of images of a sheet from code. I can create the image boxes exactly as I want but CANNOT work out how to add the pictures from code. Can anyone help me please? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Adding pictures, images or objects | Excel Discussion (Misc queries) | |||
PowerPoint objects in Excel | Excel Discussion (Misc queries) | |||
Adding specific objects based on data... | Excel Discussion (Misc queries) | |||
Objects in VBA and Excel | Excel Programming | |||
Screen is flashing when VBA adding objects into Excel sheet? | Excel Programming |