RE: Object Browser does what?
- From: "Jim Thomlinson" <jamest@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 27 Jun 2005 08:47:10 -0700
The error in your line of code is that you are not using the end property
instead you are using the constant associated with the property. End is what
you want to use, so the line will look like this:
Active***.Range(rFoundHd, rFoundHd.End(xlDown)).Select
A am assuming that you rFoundHd is a range object that is declared as a
range. As for the object browser it can be quite useful but it takes a bit of
practice and a bit of knowledge about the object you are using. Just keep
writing code and eventually it will be easy. That is what I keep telling
myself...
--
HTH...
Jim Thomlinson
"davegb" wrote:
> I've been told by others that the Object Browser is a useful tool for
> figuring out if a given object/method/property exists under another
> object/method/property. I haven't found this to be true. For example,
> I'm getting an "Object does not support this property or method" error
> on this line of code:
>
> Active***.Range(rFoundHd, rFoundHd.xlDown).Select
>
> I found the "Active***.Range" in this forum in many examples. When I
> got the error, I looked up Range in VBA help, but it doesn't list
> "Active***" as a parent to ".Range". (Of course, there's no way to
> look up "Active***" and see it's children). So it appears that only
> some relationships are shown. Is the OB a partial list? If so, it there
> a pattern of some kind to tell what's listed and what's not, or is it
> just that some objects/methods/properties were missed?
>
> I've also been very confused when the Object Browser lists multiple
> examples of the same parent/child relationship, like Range and
> Work***. Why tell me twice that range is a child of Work***? Is it
> because, according to Walkenbach, Work*** can be an object, a
> property or a method? I don't know whether to laugh or cry!
>
> There seems to be lots of help for experts in using VBA, and none for
> beginners. Walkenbach's book certainly falls into this category. I've
> discussed this in an earlier post and accepted this now. But after
> several months of working with VBA, I still don't see much use to the
> OB if it's not a complete listing. For right now, I feel that if I want
> to know if .Range is a child of Active***, I have to check the OB,
> and if I don't find the relationship, I have to check in this NG to
> make sure. Pretty tedious! Is this in fact the way to proceed?
>
> In any case, I do appreciate the help I've gotten here. Without it, I'd
> certainly be nowwhere with writing all the code I've written!
>
> And btw, any ideas on why I'm getting the error message on that line of
> code?
>
>
.
- References:
- Object Browser does what?
- From: davegb
- Object Browser does what?
- Prev by Date: Re: Recording Changes Made to Work***
- Next by Date: Re: Object Browser does what?
- Previous by thread: Re: Object Browser does what?
- Next by thread: Re: Object Browser does what?
- Index(es):
Loading