Consulting

Results 1 to 5 of 5

Thread: Solved: Dropdown Formfield

  1. #1
    VBAX Regular
    Joined
    Apr 2005
    Posts
    86
    Location

    Solved: Dropdown Formfield

    Guys,
    Other than using SendKeys, how do i make a Dropdown formfield drop down its list on entry??
    It's doing my head in!

    Thanks
    Pete

  2. #2
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    As far as I know, formfields do not have a method for dropping down. A Combobox, on the other hand, DOES.

    This includes comboboxes on UserForms, as well as ActiveX comboboxes IN a document. You would use the GetFocus event to fire:

    Combobox1.Dropdown

  3. #3
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Hi Pete,

    Nopes it's not possible and I've showed you the method with SendKey's the last time: http://www.vbaexpress.com/forum/show...field+dropdown

    This is the only method I know of to do this:[Vba]
    Sub DropDownList()
    SendKeys "%{DOWN}", True
    End Sub
    'Entry macro[/vba]

    So I think there's nothing more to do then use that.
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

  4. #4
    VBAX Regular
    Joined
    Apr 2005
    Posts
    86
    Location
    Thanks for the advice guys

  5. #5
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Where always there for you buddy!
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

Posting Permissions

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