+ Reply to Thread
Results 1 to 6 of 6

simulate "Enter" key to transfer data

  1. #1
    Registered User
    Join Date
    03-27-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    3

    simulate "Enter" key to transfer data

    Hi excellers,

    I have a popup user form "Cost Head" with list box "Items".
    as of now i can navigate through list items with arrow buttons to select and transfer the item to worksheet with double click. (Listbox double click event)

    what i want to do is,
    once an item is selected i should be able to transfer item name to worksheet by clicking "enter" button instead of double click
    any help is very much appreciated
    thank you in advance
    srikanth

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: simulate "Enter" key to transfer data

    We need your code to see how double click. is managed, and better attach your Excel file ( change personal data if needed )
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    03-27-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: simulate "Enter" key to transfer data

    This code goes with CANCEL button
    Please Login or Register  to view this content.
    This code is with Listbox to transfer item name to worksheet
    Please Login or Register  to view this content.
    I can navigate through the list with arrow keys and transfer data with double click.
    I want to transfer data by clicking "Enter" key on keyboard.

    Thank you
    Last edited by 6StringJazzer; 02-12-2020 at 12:54 PM.

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: simulate "Enter" key to transfer data

    Try:

    Please Login or Register  to view this content.
    p.s. please wrap your code into CODE tag.
    Last edited by KOKOSEK; 02-12-2020 at 10:19 AM.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: simulate "Enter" key to transfer data

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: simulate "Enter" key to transfer data

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

+ 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] Continue code after input password without "Ok" or "Enter"
    By scallebe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-22-2018, 05:01 PM
  2. ActiveX Textbox - "Enter" or "Return" key event - possible?
    By ironfelix717 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2018, 09:56 PM
  3. Need CountCellsByColor formula to update automatically without pressing "F2" "Enter"
    By PsychicFish in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-16-2016, 12:40 AM
  4. [SOLVED] IF CELL is "Yes" the enter "Enabled" IF CELL is "No" enter "Disabled"
    By king10001 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-10-2016, 09:33 AM
  5. Enter Data on "Main" or "Input" Sheet and Copy to One of Many Other Sheets
    By timothy_no7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2012, 07:29 PM
  6. VBA editor auto changes "." to "'#" as you type ... not just after pressing <enter>?
    By Stripey_uk in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-04-2011, 08:00 AM
  7. How to simulate "Data>Form" in VBA
    By Baapi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-29-2006, 06:10 AM

Tags for this Thread

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