+ Reply to Thread
Results 1 to 4 of 4

Sum Value Displayed on userform textbox

  1. #1
    Registered User
    Join Date
    12-07-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2010
    Posts
    11

    Sum Value Displayed on userform textbox

    Hi Experts ,

    Have been trying to find a solution to a problem and cant seem to solve it please help.

    I have a sheet that captures repairs done to a vehicle at different times. The unique id is VehicleId and the fields for repairs are Repair1, Repair2,Repair3,Repair4,Repair5 Total Repair.

    I am capturing the vehicle repair info from a vba userform and the entry is made after the vehicle id is entered and the new repair data is added each on new line in the worksheet, meaning that if for ex there are say 3 repairs done for vehicle id no 100 then it would look as follows:
    Date of Repair Vehicle Id Repair1 Repair2 Repair3 Repair4 Repair5 Total Repair.
    01/05/2013 1001 1500 0 0 0 0 1500
    02/06/2013 5002 750 0 0 0 0 750
    02/07/2013 1001 1500 3000 0 0 0 4500
    04/08/2013 5002 750 350 0 0 0 1100

    On the report user form when the user enters the Vehicle Id i would like the textbox that is on the userform that says Total Repairs to display the sum total of all repairs done for that vehicle.
    Ex:- if the user enters 1001 Total Repairs should display 4500

    PS( i do not necessarily need the total repairs on the sheet if the calculation could be directly done on the userform at the time of query is also fine i guess)

    Have tried my head around it but cannot seem to do it .... Pleasse hellllp

    Naz.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Sum Value Displayed on userform textbox

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    12-07-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Sum Value Displayed on userform textbox

    repair entry user form.jpgreport form.jpg

  4. #4
    Registered User
    Join Date
    12-07-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Sum Value Displayed on userform textbox

    not able to attch the file tried making a sample file but too big it says will try n attach jpgs instead hope it helps. have been stuck on this for a long time now img1.jpgimg2.jpg

+ 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: 3
    Last Post: 05-07-2012, 09:46 PM
  2. Currency Displayed in TextBox
    By keenasmustard in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-23-2011, 04:34 AM
  3. Userform Textbox updating a another userform textbox (im stuck!!)
    By wapwap in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-31-2011, 02:56 PM
  4. Abbreviating path displayed in textbox
    By Road Lizard in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2007, 05:33 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