+ Reply to Thread
Results 1 to 4 of 4

Enter only Numbers and spaces into a textbox

  1. #1
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    Enter only Numbers and spaces into a textbox

    i would like to be able to enter only numbers and spaces into a text box
    i am already using this code

    Please Login or Register  to view this content.
    but cant enter numbers after space
    I dont like to use code i dont understand
    it makes it hard to use in other situations
    so please try to be as clear and patent as possible with me

    Criticism is welcomed

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon FRIEL

    How about something like this :
    Please Login or Register  to view this content.
    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    Cool

    MINT
    thanks allot Dominic

  4. #4
    Valued Forum Contributor
    Join Date
    08-26-2006
    Location
    -
    MS-Off Ver
    2010
    Posts
    388
    Quote Originally Posted by FRIEL View Post
    i would like to be able to enter only numbers and spaces into a text box
    Another way is directly checking the key pressed on the keyboard with the KeyPress event:
    Please Login or Register  to view this content.

+ 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. Removing Spaces between text and/or numbers
    By zachharriman in forum Excel General
    Replies: 2
    Last Post: 07-21-2008, 07:14 PM
  2. removing spaces in imported document
    By xirokx in forum Excel General
    Replies: 5
    Last Post: 04-29-2008, 02:40 PM
  3. Fixing Contact Numbers
    By jonny9781 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-27-2007, 01:24 PM
  4. Removing spaces from phone numbers..?
    By cazzstar in forum Excel General
    Replies: 2
    Last Post: 06-19-2007, 06:36 AM
  5. Formatting telephone numbers as text
    By ozziedave in forum Excel General
    Replies: 2
    Last Post: 05-28-2007, 03:16 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