+ Reply to Thread
Results 1 to 18 of 18

Properties/Methods List

  1. #1
    Registered User
    Join Date
    10-02-2009
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    10

    Properties/Methods List

    Hi, I've been a member for a little while and have lurked around and have found the help here really wonderful.

    I have a stupid and hopefully simple question. I searched and could not find anything, maybe I was not searching for the correct terms, not exactly sure.

    When I am writing some code for example; Cells.(4,7)
    Once I type the dot after "Cells" I receive a list of all the Properties/Methods like "Activate, Add Comment, etc...." that would show me the available choices.

    When I add a ActiveX Listbox and I type for example; "Listbox1." or whatever I have named the listbox I don't receive this handy list that shows me the available choices. When my co-worker and I create the exact same sheet with the exact same code and object he receives this list.

    Any thoughts as to why this would occur?

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Properties/Methods List

    Are you definitely typing in the code module for the worksheet, not a normal module (or a different sheet's module)
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    10-02-2009
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Properties/Methods List

    I am typing the code in the worksheet module, I have only 1 sheet in this file.

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Properties/Methods List

    Assuming you have the name right (try starting with Me. just to make sure) does pressing Ctrl+J after typing the full stop work?

  5. #5
    Registered User
    Join Date
    10-02-2009
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Properties/Methods List

    Ok, so typing Me. provides the list of choices. Pressing Ctrl+J after the full stop does not work when I type in the name of the listbox. I checked to make sure that I am typing the correct name of the listbox to be sure, and I am. I just have this feeling I'm making a horribly simple and embarrassing mistake somewhere here.

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Properties/Methods List

    When you typed Me. did Listbox1 appear in the list of choices? If not, then the control name is wrong.

  7. #7
    Registered User
    Join Date
    10-02-2009
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Properties/Methods List

    Yes, ListBox1 showed up in the list of choices.

  8. #8
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Properties/Methods List

    So if you type Me. then select Listbox1 from the list, then type . nothing happens?

  9. #9
    Registered User
    Join Date
    10-02-2009
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Properties/Methods List

    Quote Originally Posted by romperstomper View Post
    So if you type Me. then select Listbox1 from the list, then type . nothing happens?
    Exactly, once I type . nothing happens

  10. #10
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Properties/Methods List

    Do you have a reference set to the Forms object library? (it should have been added automatically when you put the control on the sheet)

  11. #11
    Registered User
    Join Date
    10-02-2009
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Properties/Methods List

    I believe so. I have Microsoft Forms 2.0 Object Library selected. To be honest I wouldn't know if this would be the correct reference or not.

  12. #12
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Properties/Methods List

    That is the correct one.
    I am stumped as to why it doesn't work for that control. What if you add another control - does the autolist work for that one?

  13. #13
    Registered User
    Join Date
    10-02-2009
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Properties/Methods List

    Ok I added a check box, and the same result. Also tried a command button, still no luck.

  14. #14
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Properties/Methods List

    I just can't replicate that. If it works for the Me keyword, then it should work for the Objects assuming the reference is OK, which it seems to be.

  15. #15
    Registered User
    Join Date
    10-02-2009
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Properties/Methods List

    Yeah, my co-worker can't seem to replicate this either. I looked through the 'Options' in the Developer tab and didn't see anything that would affect this.

  16. #16
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Properties/Methods List

    The options are all-or-nothing, so if you get the list with one, you should get it with the other, unless there's a reference issue (and hence the VBE doesn't know what the options are). Are all your forms behaving normally?
    I even tried disabling all ActiveX controls in the Trust Center but that made no difference.

  17. #17
    Registered User
    Join Date
    10-02-2009
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Properties/Methods List

    As far as I can tell the other forms are working as intended. The interesting part of this is if I type ListBox1.Text and have the output attached to a MsgBox it works correctly. I just never get prompted with the list of choices, but if I type one of them in then it will function correctly.
    Last edited by shg; 06-24-2010 at 11:54 AM. Reason: deleted quote

  18. #18
    Registered User
    Join Date
    10-02-2009
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Properties/Methods List

    Thanks for trying romperstomper, I appreciate the effort.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1