Bill_Biggs
Well-known Member
- Joined
- Feb 6, 2007
- Messages
- 1,216
I have written a simple macro for a carpenter that converts fractions of a foot (1 ich, 3 inches and so on) to decimal points. Here it is:
Sub Macro1()
Dim A As String
A = InputBox("Enter length you need converted.")
A = A * (1 / 12)
MsgBox A
End Sub
But if I enter 1, the Msgbox displays 8.3333 -2. I would like it to display .083. Can anyone tell me how that is done?
Thanks, as always.
Bill Biggs
Sub Macro1()
Dim A As String
A = InputBox("Enter length you need converted.")
A = A * (1 / 12)
MsgBox A
End Sub
But if I enter 1, the Msgbox displays 8.3333 -2. I would like it to display .083. Can anyone tell me how that is done?
Thanks, as always.
Bill Biggs