Hi,
I have an excel sheet that has a graph in it. The graph is a line graph and has bars that contain 2 numbers that add together that create 1 bar. I have made a textbox that has "Active X" functions on it. meaning that the textbox pulls from VB code. Anyone know of the code to grab numbers from a worksheet and add them together?
EX:
Maybe something like that but that will not work.
i am just trying to populate a textbox with VB by adding 2 numbers from a worksheet.
I have an excel sheet that has a graph in it. The graph is a line graph and has bars that contain 2 numbers that add together that create 1 bar. I have made a textbox that has "Active X" functions on it. meaning that the textbox pulls from VB code. Anyone know of the code to grab numbers from a worksheet and add them together?
EX:
Code:
Private Sub TextBox1_Change()
Sheets("Sheet1").Select
Range("F4:G4").Select
textbox = F4.value+G4.value
End Sub
i am just trying to populate a textbox with VB by adding 2 numbers from a worksheet.
Comment