Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default find picture objects

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default find picture objects

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default find picture objects

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default find picture objects

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default find picture objects

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Picture objects and text boxes change position Tyler H Charts and Charting in Excel 1 June 16th 07 04:31 PM
why does Excel 2003 flip picture objects in a document created in. Don Excel Discussion (Misc queries) 1 March 10th 05 08:41 PM
Bitmap data of Image controls & Picture objects... MDB[_2_] Excel Programming 0 November 5th 04 08:30 PM
Bitmap data of Image controls & Picture objects... MDB Excel Programming 1 November 4th 04 06:35 AM
Find all running Excel Application objects news.bluewin.ch Excel Programming 3 February 13th 04 10:28 PM


All times are GMT +1. The time now is 08:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"