+ Reply to Thread
Results 1 to 7 of 7

Userform data entry by clicking on a cell instead of typing

  1. #1
    Registered User
    Join Date
    07-24-2011
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    91

    Userform data entry by clicking on a cell instead of typing

    Seems like a simple problem but I couldn't find anything on the interwebs.

    I have a textbox which is currently filled by typing the name of an item (e.g. Project xyz).

    Is there a way to also allow users to click on a cell in the sheet (i.e. containing text value "project xyz") rather than typing it in?

    Thanks.

  2. #2
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Userform data entry by clicking on a cell instead of typing

    Hi,

    I think you can probably use a "BeforeDoubleClick" event to send the data to the textbox.
    Charles

    There are other ways to do this, this is but 1 !
    Be Sure you thank those who helped.
    IF YOU'RE SATISFIED BY ANY MEMBERS RESPONSE TO YOUR ISSUE PLEASE USE THE STAR ICON AT THE BOTTOM LEFT OF THE POST UNDER THEIR NAME.

  3. #3
    Registered User
    Join Date
    07-24-2011
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: Userform data entry by clicking on a cell instead of typing

    Thank you but I am not sure how to use this in practice. Can you please give a short code example?
    Thanks.

  4. #4
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Userform data entry by clicking on a cell instead of typing

    Hi,

    This is a sample.

    Copy to the worksheet code module.
    When you doubleclick the data it should populate the Activex textbox.
    You will see the change as soon as you tab off the cell you double clicked on.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-24-2011
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: Userform data entry by clicking on a cell instead of typing

    Sorry, still not getting it. Would you mind adding to the code in the attached WS?
    The box to fill by clicking is "Name of the Project".

    Many thanks.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Userform data entry by clicking on a cell instead of typing

    Hi,

    I'll take a look...

  7. #7
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Userform data entry by clicking on a cell instead of typing

    Hi,

    I changed the Properties of the form to "Modal" to False.
    This allows you to "Double Click" the Item you wish to see in the userform.
    Sorry to say when I first looked at this I thought it was for worksheet textbox.
    Attached Files Attached Files

+ 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