+ Reply to Thread
Results 1 to 3 of 3

Text Box Data Entry omitting number '9'

  1. #1
    Registered User
    Join Date
    02-01-2016
    Location
    Ontario, Canada
    MS-Off Ver
    Office 2007
    Posts
    70

    Text Box Data Entry omitting number '9'

    Hi,

    I am trying to enter data in a text box but with these code it does not allow me to enter number '9'. What am I missing?

    Please Login or Register  to view this content.
    Please help!

    Mashiul

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Text Box Data Entry omitting number '9'

    Hi mashiulalam,

    a. Try KeyAscii <= vbKey9
    b. Please note that vbKey may be incorrect. 'Option Explicit' at the top of each code module should help you if this is a problem.

    It is a best practice to declare all variables. If you misspell a variable in your code, VBA will silently assume it is a Variant variable and go on executing with no clue to you that you have a bug. Go to the VBA development window, click Tools, Options, and check "Require Variable Declaration." This will insert the following line at the top of all new modules:
    Please Login or Register  to view this content.
    This option requires all variables to be declared and will give a compiler error for undeclared variables.

    Lewis

  3. #3
    Registered User
    Join Date
    02-01-2016
    Location
    Ontario, Canada
    MS-Off Ver
    Office 2007
    Posts
    70

    Re: Text Box Data Entry omitting number '9'

    LJMetzer,

    KeyAscii <=vbKey9 worked.

    Great to know about Option explicit.

    Thanks a lot.

    Regards,

    Mashiul

+ 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. Replies: 2
    Last Post: 12-23-2015, 01:22 AM
  2. [SOLVED] Text to Columns is omitting zeros. How do I stop that?
    By jambog in forum Excel General
    Replies: 5
    Last Post: 07-02-2015, 11:26 AM
  3. Finding last entry of data based on inquiry number and quotation number
    By arbelkasim in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-06-2014, 09:27 AM
  4. Replies: 0
    Last Post: 02-04-2014, 12:36 AM
  5. [SOLVED] Omitting Null Values from a text string
    By Skycap in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-03-2013, 02:32 AM
  6. how to entry same number twice when I alr set cannnot entry duplicate data.
    By Adamlearnexcel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-05-2012, 09:44 PM
  7. One Entry - text in one cloumn, number in another
    By kbab in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-19-2007, 08:17 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