+ Reply to Thread
Results 1 to 2 of 2

Userform Textbox input value comparison?

  1. #1
    Forum Contributor
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    680

    Userform Textbox input value comparison?

    Please Login or Register  to view this content.
    Very strange, if TextBoxA.Value = "999" and TextBoxB.Value="2000", it can meet the condition.

    Is it because the program treat it as string, not number? How to convert them to numbers?

    Thanks.

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Userform Textbox input value comparison?

    You can use VAL function in this way

    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

+ 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. [SOLVED] Userform Textbox will not allow capital letters after first letter input
    By Stratfordoaks in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-20-2014, 10:07 AM
  2. [SOLVED] Pass Value of combobox selected in Userform as input to textbox of other userform
    By Pradeepg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-29-2013, 10:32 AM
  3. input the value of a Combobox and a textbox to a TEXTBOX directly from a userform
    By Gordonhk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2013, 03:25 PM
  4. [SOLVED] populate userform listbox from textbox input
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-05-2013, 10:05 AM
  5. Calculation based on input from userform textbox
    By h0ps in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2012, 10:41 PM
  6. Use textbox input and VLookup to update another textbox on same userform
    By gcoug in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2011, 10:39 AM
  7. Userform Textbox to input data to worksheet
    By wrobs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-23-2010, 01:02 AM
  8. [SOLVED] checking input on a textbox in userform to be a %
    By Jean-Pierre D via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-25-2005, 07:05 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