PC Review


Reply
Thread Tools Rate Thread

Auto List Members

 
 
David_G
Guest
Posts: n/a
 
      27th Apr 2008
Can anyone assist? I have a problem with Auto List Members, in
particular how reliably they appear or not appear. I often use
Sheets("mySheet"). when I enter the "dot" there is no Auto List
produced. How come?
Similarly, I am currently working with commandbars, in particular the
code below:

Set DDown = CommandBars("myToolbar").controls.add
(Type:=msoControlDropdown)
with DDown
.Caption = "myDropDown" ' Caption does appear in Autolist
members
.Style = msoButtonAutomatic 'Style does not appear neither
does the mso constants
end with

Why is this so inconsistent? Or is it something I don't know?
Your help on any or all aspects of this problem would be appreciated

Thanks
David G
 
Reply With Quote
 
 
 
 
JP
Guest
Posts: n/a
 
      27th Apr 2008
If you declare a Worksheet object and set an object reference to the
sheet, you should get the dropdown after you press "."

For example:

Dim mysht As Excel.Worksheet
Set mysht = Worksheets("Sheet1")
mysht.


HTH,
JP

On Apr 26, 9:02*pm, David_G <david.goodman...@gmail.com> wrote:
> Can anyone assist? *I have a problem with Auto List Members, in
> particular how reliably they appear or not appear. *I often use
> Sheets("mySheet"). *when I enter the "dot" there is no Auto List
> produced. *How come?
> Similarly, I am currently working with commandbars, in particular the
> code below:
>

 
Reply With Quote
 
David_G
Guest
Posts: n/a
 
      29th Apr 2008
On Apr 27, 3:42*pm, JP <jp2...@earthlink.net> wrote:
> If you declare a Worksheet object and set an object reference to the
> sheet, you should get the dropdown after you press "."
>
> For example:
>
> Dim mysht As Excel.Worksheet
> Set mysht = Worksheets("Sheet1")
> mysht.
>
> HTH,
> JP
>
> On Apr 26, 9:02*pm, David_G <david.goodman...@gmail.com> wrote:
>
>
>
> > Can anyone assist? *I have a problem with Auto List Members, in
> > particular how reliably they appear or not appear. *I often use
> > Sheets("mySheet"). *when I enter the "dot" there is no Auto List
> > produced. *How come?
> > Similarly, I am currently working with commandbars, in particular the
> > code below:- Hide quoted text -

>
> - Show quoted text -


Thanks JP,
I understand where you are coming from on the Sheets example. Yes I
have declared a variable and then referenced it, Yes it works.
However what my question is aiming at is what is the guiding
principle(s) that this behaviour is following?? In other words is
this behaviour random? or is this a Systematic event?
I am working with coding commandbars at the moment and I'm finding
there is a high rate of this type of behaviour, i.e. Auto List not
showed.
So, is it true that if this behaviour occurs (no Auto List Members),
then the object variable is not declared properly? If this is true
then I can point to more instances where the object variable is
declared and there is still no auto list members.
Hopefully I can get an understanding,
Thanks
David G
 
Reply With Quote
 
JP
Guest
Posts: n/a
 
      1st May 2008
I reread your original post, and it looks like you are using DDown as
an object reference to a dropdown box, for which a button style
(msoButtonAutomatic) is not appropriate.

From a brief check of the MSDN website, the Style property only
applies to objects instantiated as CommandBarButton or
CommandBarComboBox.

What are you declaring the DDown object as?

--JP

On Apr 29, 6:19*pm, David_G <david.goodman...@gmail.com> wrote:
> On Apr 27, 3:42*pm, JP <jp2...@earthlink.net> wrote:
>
>
>
>
>
> > If you declare a Worksheet object and set an object reference to the
> > sheet, you should get the dropdown after you press "."

>
> > For example:

>
> > Dim mysht As Excel.Worksheet
> > Set mysht = Worksheets("Sheet1")
> > mysht.

>
> > HTH,
> > JP

>
> > On Apr 26, 9:02*pm, David_G <david.goodman...@gmail.com> wrote:

>
> > > Can anyone assist? *I have a problem with Auto List Members, in
> > > particular how reliably they appear or not appear. *I often use
> > > Sheets("mySheet"). *when I enter the "dot" there is no Auto List
> > > produced. *How come?
> > > Similarly, I am currently working with commandbars, in particular the
> > > code below:- Hide quoted text -

>
> > - Show quoted text -

>
> Thanks JP,
> I understand where you are coming from on the Sheets example. *Yes I
> have declared a variable and then referenced it, Yes it works.
> However what my question is aiming at is what is the guiding
> principle(s) that this behaviour is following?? *In other words *is
> this behaviour random? or is this a Systematic event?
> I am working with coding commandbars at the moment and I'm finding
> there is a high rate of this type of behaviour, i.e. Auto List not
> showed.
> So, is it true that if this behaviour occurs (no Auto List Members),
> then the object variable is not declared properly? *If this is true
> then I can point to more instances where the object variable is
> declared and there is still no auto list members.
> Hopefully I can get an understanding,
> Thanks
> David G- Hide quoted text -
>
> - Show quoted text -


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto List Members Disappearing JamesJ Microsoft Access Forms 1 9th Feb 2009 12:01 AM
Auto List members Peter Stojkovic Microsoft VB .NET 0 17th May 2006 03:39 PM
Scrolling through Auto List members list Hari Prasadh Microsoft Excel Programming 3 30th Jan 2005 05:27 AM
Auto list members Michael Singmin Microsoft Excel Programming 2 12th Mar 2004 01:24 PM
Problem with auto list members in VBA Blegos Microsoft Excel Programming 2 8th Sep 2003 09:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:41 PM.