+ Reply to Thread
Results 1 to 2 of 2

UserForm TextBox's Calculation

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    pakistan
    MS-Off Ver
    Excel 2007
    Posts
    89

    UserForm TextBox's Calculation

    Hi,

    In my userform I have 4 " TEXT BOX's" for calculations.

    TextBox1 = TextBoxTotalFees (I have freez this text box)
    TextBox2= TextBoxDiscount
    TextBox3= TextBoxAmountReceived
    TextBox4 = TextBoxAmountDue (I have freez this text box)



    TextBox1 shows me automatically fess in this box when I select a number of checkboxes..It is working fine.( I have freez this text box)

    Now I want to show me Total Amount Due in (TextBox4) after subtracting values like this...

    TextBox4 = TextBox1 - TextBox2(If No discount is given it should show automatically " 0 " or leave blank in this box) - TextBox3

    It should not give any error (mismatch 13) if by mistake the user enter character in the TextBox2 or TextBox3 but it should display message to enter a numerical number.

    Here is the code which I tried so far except TextBox2(discount)

    Please Login or Register  to view this content.

    I will very thankful If anyone could help me please.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: UserForm TextBox's Calculation

    Perhaps this which can be repeated for TextBoxAmountReceived
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

+ 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