N
Nateysz
Hello,
what's wrong with below code ?
I want to get result of equation.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
firstnumber = InputBox("Please, give me first number")
secondnumber = InputBox("Please, give me second number")
Myoperator = InputBox("Please give me an operator, for example + or - ")
Myresult = Val(firstnumber) & Myoperator & Val(secondnumber)
wiersz = Range("A1").Row
Myresult = Val(Myresult)
Cells(wiersz, 1).Value = firstnumber
Cells(wiersz, 2).Value = Myoperator
Cells(wiersz, 3).Value = secondnumber
Cells(wiersz, 4).Value = "="
Cells(wiersz, 5).Value = Myresult
what's wrong with below code ?
I want to get result of equation.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
firstnumber = InputBox("Please, give me first number")
secondnumber = InputBox("Please, give me second number")
Myoperator = InputBox("Please give me an operator, for example + or - ")
Myresult = Val(firstnumber) & Myoperator & Val(secondnumber)
wiersz = Range("A1").Row
Myresult = Val(Myresult)
Cells(wiersz, 1).Value = firstnumber
Cells(wiersz, 2).Value = Myoperator
Cells(wiersz, 3).Value = secondnumber
Cells(wiersz, 4).Value = "="
Cells(wiersz, 5).Value = Myresult