S
staying
Hey, guys.
I was setting up an inputbox for percentile value input, and the
weirdest thing happened. The code follows.
====================
Option Explicit
Sub inputboxtest()
Dim aa As Single
aa = Application.InputBox(Prompt:="Type in 10 for 10 percent", Type:=1)
/ 100
MsgBox aa
ActiveSheet.Range("a1").Value = aa
End Sub
====================
Why is this happening? Msgbox shows 0.1 but the value in the cell A1 is
not the same value.
What am I missing?
Thanks.
I was setting up an inputbox for percentile value input, and the
weirdest thing happened. The code follows.
====================
Option Explicit
Sub inputboxtest()
Dim aa As Single
aa = Application.InputBox(Prompt:="Type in 10 for 10 percent", Type:=1)
/ 100
MsgBox aa
ActiveSheet.Range("a1").Value = aa
End Sub
====================
Why is this happening? Msgbox shows 0.1 but the value in the cell A1 is
not the same value.
What am I missing?
Thanks.