VBA To Deliver Object List?

  • Thread starter Thread starter (PeteCresswell)
  • Start date Start date
P

(PeteCresswell)

Can I write a single VBA loop to enumerate all objects within an Excel .XLS?

Or do I have to know the object types/container names and enumerate the contents
of each?
 
Per Gary''s Student:

Seems like the object browser seems lists all available objects whether in use
or not - as opposed to the objects that actually are in use in the .XLS.

Have I got it right?

I'm trying to figure out how the author of a certain .XLS is managing to store a
half-million rows of data. The obvious way would be to have multiple invisible
sheets - but I cannot figure out how to browse for them.
 
If the worksheets are hidden you can try to look at the VBE's project
explorer to see a list of all of the worksheets used hidden or not.

If they are there, you can use the command
worksheets(-worksheetname-).visible = true (repeat for each hidden
sheet)

in a macro you could use


Code:
--------------------

sub Unhide()
for intcounter = 1 to worksheets.count
worksheets(intcounter).visible = true
next intcounter
end sub
 

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

Back
Top