+ Reply to Thread
Results 1 to 9 of 9

Activate list box

  1. #1
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Activate list box

    I have a macro that goes to a sheet that contains an Active X List box. I would like the list box to be activated when I access the worksheet so I can use the arrow keys to scroll down but the code below does not allow that? I have to first click inside the drop-down list and then can use the arrow keys.
    Thanks in advance.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Activate list box

    It works for me.

    Check you haven't inadvertently disabled events...
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Activate list box

    Thanks for your reply - where would I check if events have been disabled?

  4. #4
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Activate list box

    When I disable the code below, then the list box works as it should so the code below is causing the problem (DisplayFullScreen?). Is there any code I can use to fix it?
    Thanks in advance


    Please Login or Register  to view this content.

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Activate list box

    In the immediates pane of the VBE, enter:
    Please Login or Register  to view this content.

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Activate list box

    Just saw your "ScreenUpdating" post.

    try removing those lines - does it then work as you want?

  7. #7
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Activate list box

    It works fine if I remove those lines of code but I would like to use that code, if possible?

  8. #8
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Activate list box

    Then you could change your GoToFC code:

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: Activate list box

    Thanks so much - works perfectly!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Drop-Down list does not activate
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2012, 03:50 PM
  2. Trigger to activate appropriate list
    By khank in forum Excel General
    Replies: 0
    Last Post: 02-16-2011, 05:20 PM
  3. How to activate a macro from combo box / list box
    By furiousfox in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-08-2008, 10:34 AM
  4. Dropdown List Macro activate
    By Qppg in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-04-2007, 06:25 PM
  5. Activate List of Email Hyperlinks
    By Sharen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 02:05 AM
  6. Activate List of Email Hyperlinks
    By Sharen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] Activate List of Email Hyperlinks
    By Sharen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-05-2005, 10:05 PM
  8. dropdown list to activate Macro
    By Brad in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-25-2005, 04:06 PM

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