Link to home
Start Free TrialLog in
Avatar of hank1
hank1

asked on

excell object browser, help

sheets has a name property.  It is used in VBA like this:

    Sheets.Add
    Sheets("Sheet1").Select
    Sheets("Sheet1").Name = "NewName"

Ok, no big deal but how would I know this?  I go into
the object browser and name is not shown as a memeber.
It's subclassed from workbook(s) but I don't see
how any name property I find relates.

How does one investigate all the properties, like a
sheets' name?  If I hadn't seen an example, I never
would have known it existed.

Thanks
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

While in break mode, use the Locals window (from the View menu).
Avatar of hank1
hank1

ASKER

That shows declared variables ...
It doesn't seem to allow me to browse an object
or its properties.
Does it?  How would you find the name property if
you didn't it even existed?

Excell VB rookie
Thanks
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hank1

ASKER

I'll give it shot.  Wonder why the object
browser doesn't give up the goods?
Object browser should show them to you but you need to know under which class it is.
Avatar of hank1

ASKER

Wow, there's a mass of stuff in there!
This belongs in the browser!
Thanks for your help.

(Now I have to figure out how to print it for reference.)
I don't think that there is an easy way of printing it.