D
Dennis Saunders
I've a macro that used to remove extra-aneous rubbish from copy and pasted
web pages, but now there are more objects which remain. These are embedded
forms and pictures.
I don't know how I should refer to them to delete them.
Sub DelWebstuff()
'
' Macro2 Macro
'
'
On Error Resume Next
ActiveSheet.Hyperlinks.Delete
ActiveSheet.OLEObjects.Delete
ActiveSheet.DrawingObjects.Delete
ActiveSheet.Shapes.SelectAll
Selection.Delete
On Error GoTo 0
End Sub
Any ideas please?
web pages, but now there are more objects which remain. These are embedded
forms and pictures.
I don't know how I should refer to them to delete them.
Sub DelWebstuff()
'
' Macro2 Macro
'
'
On Error Resume Next
ActiveSheet.Hyperlinks.Delete
ActiveSheet.OLEObjects.Delete
ActiveSheet.DrawingObjects.Delete
ActiveSheet.Shapes.SelectAll
Selection.Delete
On Error GoTo 0
End Sub
Any ideas please?