LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.links,microsoft.public.excel.misc,microsoft.public.excel.worksheet.functions
zz zz is offline
external usenet poster
 
Posts: 32
Default How to get rid of web page objects ?

try this code

but be advised, it deletes any Ole object inserted in the sheet, it doesn't
matter wath type is it


here's the code

Private Sub deleteobjects()
Dim s As Sheet1
Set s = ActiveSheet
Dim olObj As OLEObject
With s
For Each olObj In .OLEObjects
..OLEObjects(.OLEObjects.Count).Delete
Next
End With
set s= nothing
set OlObj=nothing
End Sub



--
hope this works!
---
zz [MX]
cuasi-musico,semi-poeta y loco


"come_mon_come_mon!" wrote in message
ups.com...

Gary''s Student ¼g¹D¡G

Using VBA:

Cells.Hyperlinks.Delete
ActiveSheet.Pictures.Delete
--
Gary's Student



YEAH !!! IT WORKS WITH URL LINKS !!!!! NOW ONLY THE CHECK BOXES WERE
LEFT REMAINED UNCLEARED :)




 
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
Auto Insert Page numbers without Footer Keith Excel Discussion (Misc queries) 2 April 28th 06 09:35 PM
Page Numbering Aurora Charts and Charting in Excel 2 December 14th 05 06:00 PM
Can't delete a page break Suhail Excel Discussion (Misc queries) 4 July 7th 05 06:49 PM
page break preview VickiJo Excel Discussion (Misc queries) 1 June 10th 05 04:12 PM
excel 2003 page numbering art Excel Worksheet Functions 3 December 8th 04 10:49 PM


All times are GMT +1. The time now is 09:54 AM.

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"