Adding up textboxes

sayedqurrat

New Member
Joined
Jun 8, 2015
Messages
4
difficulty in summing up values in the textboxes in another textbox. I have created a form of a marksheet form with 10 labels with textboxes alongside them :name, admn no, DOB, 5 subjects labels, total and result. and HV created an add record cmdbtn.
This is the code I HV typed.
Code:
Pvt sub addrecord_click
    Dim lastrow as object
    Set lastrow=sheet1.range("a65536").end(xlup)

    Lastrow.offset(1,0).value=textbox1.text
    .......to
    Lastrow.offset(1,7).value= textbox8.text
    Msgbox" one record written on your sheet1"

   Response= msgbox(" do you want to enter another record?",vbyesno)

    If response= vbyes Then
           Textbox1.text= ""
            ........ 
           Textbox8.text = ""

            Textbox1.set focus
   Else
          Unload Me
   End if
End sub
( my program still not getting run. Pls tel me a proper code tto add all the inputs of the record and also a code to sum up the marks of the subject to display it in the "total textbox" and I would also like to know how to write a code for the "result" label? Please help me...its been a week since I am breaking my head for this...until I got you ppl..please help me by telling me the codes for the same
 
Last edited by a moderator:

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Re: difficulty in summing up values in the textboxes in another textbox. I have created a form of a marksheet form with 10 labels with textboxes alongside them :name, admn no, DOB, 5 subjects labels, total and result. and HV created an add record cmd

Its really urgent can anybody help me out please
 
Upvote 0

Forum statistics

Threads
1,213,496
Messages
6,113,995
Members
448,539
Latest member
alex78

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top