Deleting Objects all at once - (copied HTML to excel)

G

Guest

I have an html table that I copy pasted to excel. But it has a lot extra
objects like picutes and form drop down fields. (I tried paste special >text
but the column spacing is lost and numbers run into each other no telling
where one cell begins and the other ends).

Is there a way to delete all objects quickly / with one action?
 
D

Don Guillett

a couple

Sub ShapesCut()
For Each s In ActiveSheet.Shapes
s.Cut
Next
End Sub
'or
Sub shapescut1() 'Tom Ogilvy
ActiveSheet.Shapes.SelectAll
Selection.Delete
End Sub
 
B

Bob Umlas

Non VBA:
Edit/Goto Special/Objects, OK, then press Delete key.
Bob Umlas
Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top