Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default selecting multiple objects with macro

I have a spreadsheet where mutliple items are cut from a webpage and pasted
to an excel sheet. (this is done this way because I have not been able to
download the data using the import function since the data requires a web
based query to populate the page i cut from)

I have figured out how to create a macro that copies from a cell with a
value of 1 and then paste special multiple all the text i import to remove
those hyperlinks.

Anyway, as a result of this cut and paste job, I always end up with a few
hundred check boxes (with hyperlinks) that I would like to remove.

I can do this manually by using the select multiple objects button on the
drawing menu, but the object's names change each time. And therefore the
macro I recorded will not work more than once.

Is there a way to select all by type? (maybe I can select by name using a
"*" rather than the "ctlnumber" listed (below is an example of the names)?

"ctl00_ctl00_ctl00_Main_Main_Main_rptRatings_ctl14 _icoStatus", _
"ctl00_ctl00_ctl00_Main_Main_Main_rptRatings_ctl15 _icoStatus", _

my basic goal is to get this sheet back to plain text (with no drawings or
hyperlinks) to save space.

thanks in advance...
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default selecting multiple objects with macro

Give this a try:

Sub cleanup()
Cells.Hyperlinks.Delete
ActiveSheet.Pictures.Delete
End Sub
--
Gary''s Student - gsnu200817
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default selecting multiple objects with macro

that is just far too simple... :-) thanks!

"Gary''s Student" wrote:

Give this a try:

Sub cleanup()
Cells.Hyperlinks.Delete
ActiveSheet.Pictures.Delete
End Sub
--
Gary''s Student - gsnu200817

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default selecting multiple objects with macro

The first time I saw it, I was a little shocked myself.
--
Gary''s Student - gsnu200817


"Memphus01" wrote:

that is just far too simple... :-) thanks!

"Gary''s Student" wrote:

Give this a try:

Sub cleanup()
Cells.Hyperlinks.Delete
ActiveSheet.Pictures.Delete
End Sub
--
Gary''s Student - gsnu200817

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
Excel 2007: Selecting multiple objects by drawing a selection box panalysis Excel Discussion (Misc queries) 4 April 2nd 23 07:41 PM
Stopping mouse selecting chart objects speedelectric Charts and Charting in Excel 0 June 16th 08 06:07 PM
remove multiple objects widman Excel Discussion (Misc queries) 3 December 26th 06 06:58 PM
Bin, Distribution multiple objects??? William Elerding Excel Worksheet Functions 0 August 8th 06 06:54 PM
how can I select multiple drawing objects at once ExcelUser Excel Discussion (Misc queries) 1 February 11th 05 10:42 AM


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