У меня возникла проблема немогу отнять значение одного ТекстБокса от другого.
Код: Выделить всё
TextBox1.Value =TextBox2.Value -TextBox3.Value
Модератор: Naeel Maqsudov
Код: Выделить всё
TextBox1.Value =TextBox2.Value -TextBox3.Value
Код: Выделить всё
TextBox1.Value =Val(TextBox2.Value) -Val(TextBox3.Value)
Код: Выделить всё
TextBox1.Value =Val(][/quote]
[code]With Sheets("Лист1")
Me.TextBox10.Value = WorksheetFunction.DSum(.Range(.Cells(3, 1), .Cells(60000, 20)), _
"Что-то", .Range(.Cells(4, 30), .Cells(5, 32)))
End With
With Sheets("Лист2")
Me.TextBox12.Value = WorksheetFunction.DSum(.Range(.Cells(3, 1), .Cells(60000, 20)), _
"То-то", .Range(.Cells(4, 33), .Cells(5, 35)))
End With
TextBox13.Value=TextBox12.Value-TextBox10.Value
Код: Выделить всё
TextBox3.Value =cdbl(TextBox1.Value)-cdbl(TextBox2.Value)