+ Reply to Thread
Results 1 to 3 of 3

Command Button and Sum Text Box

  1. #1
    Registered User
    Join Date
    02-24-2014
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    47

    Command Button and Sum Text Box

    have a problem making my userform more efficient.

    I have 3 textboxes. 1 and 2 sum values from 8 other textboxes and textbox 3 calculates a %score from the values in box 1 and 2. Essentially what I want to do is have 1 command button sum the values for box 1, 2, and also the %score for box 3. instead of having 3 command buttons to calcuate box 1, another for box 2, and then another for box 3

  2. #2
    Forum Contributor
    Join Date
    12-27-2012
    Location
    cebu, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    210

    Re: Command Button and Sum Text Box

    you could use something like this:


    Please Login or Register  to view this content.
    in the code above, when the commandbutton1 is clicked, the value of textbox4 is taken from the sum of all other text boxes...
    don't worry, there's a lot of people that are far more confused than you
    but if you liked what i suggested. Click for me the "Add Reputation" - that way, we'd be both happy.

  3. #3
    Registered User
    Join Date
    02-24-2014
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: Command Button and Sum Text Box

    hey ag273n, thanks for the reply.

    not sure if you saw the file, so let me try to explain better.

    I want 1 command button to sum textbox values from 1-8 in text box 9, sum values textbox 10-17 in text box 18, then also calculate a % socre in textbox 19.

+ 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. Sum Text Box Using Command Button
    By esaban in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2014, 03:34 PM
  2. command button to clear text box AND ad value
    By Gal403 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2014, 10:35 PM
  3. Replies: 1
    Last Post: 09-17-2007, 09:57 PM
  4. delete from text box using command button
    By john tempest in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2006, 03:25 AM
  5. [SOLVED] Command Button text changes size
    By RWN in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2005, 01:06 AM

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