Solved

excell object browser, help

Posted on 2001-07-27
7
133 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
  • 4
  • 3
7 Comments
 
LVL 69

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 69

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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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 69

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 69

Expert Comment

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

705 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now