Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have an Excel worksheet with some picture objects in it that I don't want.
How could I use VBA to delete all the pictures in the worksheet? Thanks for all your help. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ActiveSheet.Pictures.Delete
but this will delete controls from the Control Toolbox Toolbar as well - but that may not be an issue. -- Regards, Tom Ogilvy "Dave B" wrote in message ... I have an Excel worksheet with some picture objects in it that I don't want. How could I use VBA to delete all the pictures in the worksheet? Thanks for all your help. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Wow, that was embarrassingly easy. Will it delete custom controls in the
Controls Toolbox, or ALL controls in the toolbox? Will they come back when I relaunch Excel? Thanks. "Tom Ogilvy" wrote in message ... ActiveSheet.Pictures.Delete but this will delete controls from the Control Toolbox Toolbar as well - but that may not be an issue. -- Regards, Tom Ogilvy "Dave B" wrote in message ... I have an Excel worksheet with some picture objects in it that I don't want. How could I use VBA to delete all the pictures in the worksheet? Thanks for all your help. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I meant if you had them on the worksheet. It won't affect the toolbox
itself. -- Regards, Tom Ogilvy "Dave B" wrote in message ... Wow, that was embarrassingly easy. Will it delete custom controls in the Controls Toolbox, or ALL controls in the toolbox? Will they come back when I relaunch Excel? Thanks. "Tom Ogilvy" wrote in message ... ActiveSheet.Pictures.Delete but this will delete controls from the Control Toolbox Toolbar as well - but that may not be an issue. -- Regards, Tom Ogilvy "Dave B" wrote in message ... I have an Excel worksheet with some picture objects in it that I don't want. How could I use VBA to delete all the pictures in the worksheet? Thanks for all your help. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try
Sub DelPics() Activesheet.Pictures.Delete End Sub Hope this helps Rowan Dave B wrote: I have an Excel worksheet with some picture objects in it that I don't want. How could I use VBA to delete all the pictures in the worksheet? Thanks for all your help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Picture objects and text boxes change position | Charts and Charting in Excel | |||
why does Excel 2003 flip picture objects in a document created in. | Excel Discussion (Misc queries) | |||
Bitmap data of Image controls & Picture objects... | Excel Programming | |||
Bitmap data of Image controls & Picture objects... | Excel Programming | |||
Find all running Excel Application objects | Excel Programming |