How do I locate a fixed object in excel?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am attempting to hide columns in excel. At a certain point I get an error
message which states "Cannot shift objects off sheet." I don't believe that
I have any objects in my sheet. For fun I tried to insert a column and I get
an error message that "Fixed Objects will move". I would like to find the
object so that I can delete it.
 
Try running the following macro:

Sub AA()
Dim SH As Shape
Dim OLEObj As OLEObject

For Each SH In ActiveSheet.Shapes
Debug.Print "SHAPE: ", SH.Name, SH.TopLeftCell.Address
Next SH
For Each OLEObj In ActiveSheet.OLEObjects
Debug.Print "OBJECT: ", OLEObj.Name,
OLEObj.TopLeftCell.Address
Next OLEObj
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"ricia.robertson" <[email protected]>
wrote in message
news:[email protected]...
 
Back
Top