Solved

excell object browser, help

Posted on 2001-07-27
7
140 Views
Last Modified: 2010-05-02
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
0
Comment
Question by:hank1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6327448
While in break mode, use the Locals window (from the View menu).
0
 
LVL 1

Author Comment

by:hank1
ID: 6328735
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
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 50 total points
ID: 6328750
You can highlight an object (ie: Sheets(1) ) and press SHIFT-F9 and add it to the watch window. You can then explode it to see all its properties. Notice that you have to be running to see it and the object must be alive. A good place to see it is somewhere like:

   Sheets.Add
   Sheets("Sheet1").Select
   Sheets("Sheet1").Name = "NewName"
   'HERE
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:hank1
ID: 6328774
I'll give it shot.  Wonder why the object
browser doesn't give up the goods?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6328782
Object browser should show them to you but you need to know under which class it is.
0
 
LVL 1

Author Comment

by:hank1
ID: 6328816
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.)
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6328850
I don't think that there is an easy way of printing it.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question