Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Delete Picture Objects

How can I select all the picture objects in my excel file and delete them?
I've tried highlighting the column but that doesn't work.

Thanks Mike


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Delete Picture Objects

Hi Mike

All objects or only Pictures ?

See this page for example code
http://www.rondebruin.nl/controlsobjectsworksheet.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"The Other Mike" wrote in message ...
How can I select all the picture objects in my excel file and delete them? I've tried highlighting the column but that doesn't
work.

Thanks Mike



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Delete Picture Objects

Only pictures.
Thanks


"Ron de Bruin" wrote in message
...
Hi Mike

All objects or only Pictures ?

See this page for example code
http://www.rondebruin.nl/controlsobjectsworksheet.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"The Other Mike" wrote in message
...
How can I select all the picture objects in my excel file and delete
them? I've tried highlighting the column but that doesn't work.

Thanks Mike





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Delete Picture Objects

Try this one

Sub Shapes2()
'Loop through the Shapes collection and use the Type number of the control
Dim myshape As Shape
For Each myshape In ActiveSheet.Shapes

' pictures
If myshape.Type = 13 Then myshape.Delete
' You can also use myshape.Visible = False

Next myshape
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"The Other Mike" wrote in message ...
Only pictures.
Thanks


"Ron de Bruin" wrote in message ...
Hi Mike

All objects or only Pictures ?

See this page for example code
http://www.rondebruin.nl/controlsobjectsworksheet.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"The Other Mike" wrote in message ...
How can I select all the picture objects in my excel file and delete them? I've tried highlighting the column but that doesn't
work.

Thanks Mike







  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Delete Picture Objects

It worked on a picture I've inserted into the execl spreadsheet but not on
what I pasted into the spreadsheet. I'm pasting from the internet and it
puts the little Java Icon on the spreadsheet. I click on the Icon and it
says it's a picture. Maybe it's a different type?

"Ron de Bruin" wrote in message
...
Try this one

Sub Shapes2()
'Loop through the Shapes collection and use the Type number of the control
Dim myshape As Shape
For Each myshape In ActiveSheet.Shapes

' pictures
If myshape.Type = 13 Then myshape.Delete
' You can also use myshape.Visible = False

Next myshape
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"The Other Mike" wrote in message
...
Only pictures.
Thanks


"Ron de Bruin" wrote in message
...
Hi Mike

All objects or only Pictures ?

See this page for example code
http://www.rondebruin.nl/controlsobjectsworksheet.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"The Other Mike" wrote in message
...
How can I select all the picture objects in my excel file and delete
them? I've tried highlighting the column but that doesn't work.

Thanks Mike











  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Delete Picture Objects

Do you have other controls on that sheet Mike that you want to keep ?
Forms controls or controltoolbox controls ?

--
Regards Ron de Bruin
http://www.rondebruin.nl


"The Other Mike" wrote in message ...
It worked on a picture I've inserted into the execl spreadsheet but not on what I pasted into the spreadsheet. I'm pasting from
the internet and it puts the little Java Icon on the spreadsheet. I click on the Icon and it says it's a picture. Maybe it's a
different type?

"Ron de Bruin" wrote in message ...
Try this one

Sub Shapes2()
'Loop through the Shapes collection and use the Type number of the control
Dim myshape As Shape
For Each myshape In ActiveSheet.Shapes

' pictures
If myshape.Type = 13 Then myshape.Delete
' You can also use myshape.Visible = False

Next myshape
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"The Other Mike" wrote in message ...
Only pictures.
Thanks


"Ron de Bruin" wrote in message ...
Hi Mike

All objects or only Pictures ?

See this page for example code
http://www.rondebruin.nl/controlsobjectsworksheet.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"The Other Mike" wrote in message ...
How can I select all the picture objects in my excel file and delete them? I've tried highlighting the column but that doesn't
work.

Thanks Mike











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
find picture objects Dave B[_3_] Excel Programming 4 October 21st 05 03:46 AM
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


All times are GMT +1. The time now is 12:55 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"