+ Reply to Thread
Results 1 to 16 of 16

Entering a number in a cell using the mouse

  1. #1
    Registered User
    Join Date
    02-02-2006
    Location
    Sydney . Australia
    MS-Off Ver
    2007 and 2013
    Posts
    98

    Entering a number in a cell using the mouse

    Is there a way to click a cell and a dropdown list of numbers (0 to 9) pops up to select the digits that make up the number to be entered?
    Thanks in advance.

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Entering a number in a cell using the mouse

    Click the cell where you want a drop down list --> Data --> Data Validation --> Allow List --> Type 0,1,2,3,4,5,6,7,8,9 in the Source box --> OK
    You can copy the cell down as far as needed.
    Does that help?
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Registered User
    Join Date
    02-02-2006
    Location
    Sydney . Australia
    MS-Off Ver
    2007 and 2013
    Posts
    98

    Re: Entering a number in a cell using the mouse

    Thanks sktneer. Could you tell me how to enter the number 2561

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Entering a number in a cell using the mouse

    Is it a single number 2561 or four numbers 2,5,6,1? What is your requirement actually?

  5. #5
    Registered User
    Join Date
    02-02-2006
    Location
    Sydney . Australia
    MS-Off Ver
    2007 and 2013
    Posts
    98

    Re: Entering a number in a cell using the mouse

    A SINGLE number (2561)
    Last edited by Michael6; 07-01-2014 at 09:29 AM.

  6. #6
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: Entering a number in a cell using the mouse

    Hi,
    maybe try quick VBA code:
    Book1.xlsm
    Regards
    Miroslav R.

    (If You like my solutions, feel free to add reputation.)

  7. #7
    Registered User
    Join Date
    02-02-2006
    Location
    Sydney . Australia
    MS-Off Ver
    2007 and 2013
    Posts
    98

    Re: Entering a number in a cell using the mouse

    Thanks Miroslav,
    Could you please explain to me how to do it? I mean this quick VBA code!
    I an not quite familiar with VBA

  8. #8
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: Entering a number in a cell using the mouse

    Hi,
    there are lets say 2stages:
    1) worksheet event on 'Sheet1' with 'Userform1' pop-up
    2) 'Listbox1' change event with write values procedure

    @1
    Please Login or Register  to view this content.
    in other words, anytime You click single cell (Target.Count = 1) and this cell is in range B2:G13, 'Start' procedure is triggered with variable 'Target', which is the range(cell):
    Please Login or Register  to view this content.
    @2
    Please Login or Register  to view this content.
    when You click any digit in listbox, 'WriteVals' procedure is triggered:
    Please Login or Register  to view this content.
    in other words, take the value that is already in clicked cell and add the on-userform-clicked digit

    Note that variable 'rRng' is public due to its visibility and scope:
    HTML Code: 
    Is it understandable for You?

  9. #9
    Registered User
    Join Date
    02-02-2006
    Location
    Sydney . Australia
    MS-Off Ver
    2007 and 2013
    Posts
    98

    Re: Entering a number in a cell using the mouse

    Thanks again Miroslav.
    It is not readily understood as my knowledge in VBA is rather poor. You gave me the idea and I will try and find a way to apply it.
    But I still wonder if there is another way other than the VBA !!!
    I appreciate your help

  10. #10
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: Entering a number in a cell using the mouse

    Maybe if You share the purpose,someone will be able to find the way how to fulfill Your requirement.

  11. #11
    Registered User
    Join Date
    02-02-2006
    Location
    Sydney . Australia
    MS-Off Ver
    2007 and 2013
    Posts
    98

    Re: Entering a number in a cell using the mouse

    Could any body help me modify the VBA code (suggested by Miroslav) so that a number with decimals in it (eg. 2561.27) can be entered?
    Thanks in advance.

  12. #12
    Valued Forum Contributor Miroslav R.'s Avatar
    Join Date
    05-16-2013
    Location
    NMnV, Slovakia
    MS-Off Ver
    Excel 2007
    Posts
    479

    Re: Entering a number in a cell using the mouse

    Yes,
    Book1.xlsm

  13. #13
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Entering a number in a cell using the mouse

    why not just use the on screen keyboard from accessibility options?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  14. #14
    Registered User
    Join Date
    02-02-2006
    Location
    Sydney . Australia
    MS-Off Ver
    2007 and 2013
    Posts
    98

    Re: Entering a number in a cell using the mouse

    Miroslav, great to see you back.
    The modification does not seem to work. Trying to enter, say 253.17 for example, I get 25317
    One more thing, can I have the title Amount shown on top?
    Thank you very much.

  15. #15
    Registered User
    Join Date
    02-02-2006
    Location
    Sydney . Australia
    MS-Off Ver
    2007 and 2013
    Posts
    98

    Re: Entering a number in a cell using the mouse

    Thank you Martin.
    The on-screen keyboard is not what is actually required.
    Could you please have a look at the VBA code given above and see if any modification can be made to get to work. Miroslav does not seem to be around at the moment.
    Your help will be much appreciated.

  16. #16
    Registered User
    Join Date
    02-02-2006
    Location
    Sydney . Australia
    MS-Off Ver
    2007 and 2013
    Posts
    98

    Re: Entering a number in a cell using the mouse

    The coma (,) that appears in the userform is a mistake, as it should be a dot (.) , that is a decimal point.
    I don't Know how to correct this.
    Could any one please use the link above [given by Miroslav] and help me out?
    Thank you.
    Michael
    Last edited by Michael6; 07-17-2014 at 06:54 AM.

+ 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. Default number entering has messed up entering a number
    By BaltasarGracian in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-10-2012, 05:58 AM
  2. Replies: 6
    Last Post: 10-13-2006, 08:28 AM
  3. [SOLVED] entering number down to cell
    By kayani in forum Excel General
    Replies: 1
    Last Post: 07-25-2006, 01:45 PM
  4. Replies: 2
    Last Post: 09-02-2005, 05:05 PM
  5. Must move mouse before entering data?
    By JoelCBennett in forum Excel General
    Replies: 0
    Last Post: 04-07-2005, 07: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