+ Reply to Thread
Results 1 to 5 of 5

Sum three textboxes %age in one textbox on userform

  1. #1
    Forum Contributor
    Join Date
    11-19-2015
    Location
    India
    MS-Off Ver
    excel 2013
    Posts
    124

    Sum three textboxes %age in one textbox on userform

    Hi,

    I have some textboxes on a form and I'm trying to sum them and put the total in another textbox on the same form.

    e.g=

    TextBox10=100%
    TextBox12=100%
    TextBox14=100%

    TextBox49=TextBox10+TextBox12+TextBox14

    TextBox49=300%

    Regards,

    Xlhelp7

  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

    Re: Sum three textboxes %age in one textbox on userform

    Good morning xlhelp7

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

    DominicB

  3. #3
    Forum Contributor
    Join Date
    11-19-2015
    Location
    India
    MS-Off Ver
    excel 2013
    Posts
    124

    Re: Sum three textboxes %age in one textbox on userform

    Hi DominicB,

    Thanks for the reply!

    I tried your code but it is not working.

    Please find the attached sample file.

    Thanks,

    Xlhelp7
    Attached Files Attached Files

  4. #4
    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

    Re: Sum three textboxes %age in one textbox on userform

    Hi xlhelp7

    You were trying to link the code to the textbox14 change event, but textbox14's not going to be changed. Also you will need to set textboxes 10, 12 and 14 a default value of zero.

    Then use this code :
    Please Login or Register  to view this content.
    HTH

    DominicB

  5. #5
    Forum Contributor
    Join Date
    11-19-2015
    Location
    India
    MS-Off Ver
    excel 2013
    Posts
    124

    Re: Sum three textboxes %age in one textbox on userform

    Hi dominicb,

    Thanks for your help!

    Now its working!

    Regards,

    Xlhelp7

+ 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. How to concatenate two or more textboxes in one textbox
    By beto77 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-03-2016, 05:17 PM
  2. [SOLVED] Using TextBoxes to Subtract a constant value from another TextBox
    By Gal403 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-25-2015, 12:43 PM
  3. Replies: 1
    Last Post: 02-17-2015, 07:11 AM
  4. [SOLVED] URGENCY: Textbox does the union of the other textboxes
    By carapins in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-17-2013, 07:05 AM
  5. [SOLVED] Several Textboxes values into one textbox
    By sagar007 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-17-2012, 08:11 AM
  6. If TextBox has value set visible other TextBoxes, if not set false
    By john55 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-02-2011, 02:53 PM
  7. How to update textbox from other textboxes
    By chris0374 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2010, 04:20 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