+ Reply to Thread
Results 1 to 3 of 3

User Form: Button Return Order

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664

    User Form: Button Return Order

    Hi all,

    I have a user form which is used to activate a custom autofilter. It consists of a textbox (name: supData3) and two buttons - 'Find It!' (name: cmdSearchForm5) and 'Close' (name: supItemCls).

    Everything works fine and dandy bar one little niggle. Once you've entered the word or phrase you want to search in the text box and hit return, Excel highlights the 'Close' button instead of the 'Find It' button. This is a bit of a problem for the many laze-bags I have in the office who find it difficult to use a mouse and click the 'Find It' button - they keep hitting return and closing the user form without doing the search.

    Does anyone know how to make the cursor go to 'Find It' instead of 'Close', or even just to automatically run the autofilter macro once the user hits return?

    TIA,

    SamuelT

  2. #2
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Tab order

    Try right clicking on the userform and changing the Tab order mate,

    make sure you have the find it button before the close button.

    Hope that helps
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  3. #3
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Who knew! Exactly what I was after. Thanks very much.

+ 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