Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
My Macros retrieves graphs from an external app as jpg images and pastes them in the sheet. before i run this macro i want to delete these old images. i tried this but it is not an oleobject. how are images treated as in excel For Each obj In Sheet1.OLEObjects obj.Delete Next oCheck |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
See
http://www.rondebruin.nl/controlsobjectsworksheet.htm For example Sub Shapes1() 'Delete all Objects except Comments On Error Resume Next ActiveSheet.DrawingObjects.Visible = True ActiveSheet.DrawingObjects.Delete On Error GoTo 0 End Sub -- Regards Ron De Bruin http://www.rondebruin.nl wrote in message oups.com... Hi My Macros retrieves graphs from an external app as jpg images and pastes them in the sheet. before i run this macro i want to delete these old images. i tried this but it is not an oleobject. how are images treated as in excel For Each obj In Sheet1.OLEObjects obj.Delete Next oCheck |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() " wrote: ... before i run this macro i want to delete these old images. i tried this but it is not an oleobject. how are images treated as in excel Try: For Each pic In Sheet1.Shapes pic.Delete Next |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using an Excel sheet for batch delete | Excel Worksheet Functions | |||
how do i sort a data sheet which has images in it also? | Excel Discussion (Misc queries) | |||
how can you delete multiple images | Excel Worksheet Functions | |||
Delete Images | Excel Programming | |||
VBA code to insert images in excel sheet | Excel Programming |