+ Reply to Thread
Results 1 to 4 of 4

Keypress, howto alow spaces only after numerical value

  1. #1
    Registered User
    Join Date
    09-15-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    18

    Keypress, howto alow spaces only after numerical value

    Hi

    I have a textbox and I have disabled all enries except numerical values and spaces. However, I want the user to use the spaces only and ONLY after entering a numerical value. How can I modify my code to achieve that. Thank you.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    /Hamsan

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Keypress, howto alow spaces only after numerical value

    Hello there,

    Try updating your code to the following:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-15-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Keypress, howto alow spaces only after numerical value

    Hi rvasquez.

    Tank you for your reply. The code didn't work as I wanted to but your code-comments made me understand the code better and I made some modifications and got the code to work as I want. Thank you very much!

    /Hamsan

  4. #4
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Keypress, howto alow spaces only after numerical value

    No problem!

+ 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