Save this as a vbscript (filename.vbs) and modify the language as needed. Should be pretty self explanatory let me know if that works.
Sub ConvertTemp()
temp = InputBox("Please enter the temperature in degrees F.", 1)
MsgBox "The temperature is " & Celsius(temp) & " degrees C."
End Sub
Function Celsius(fDegrees)
Celsius = (fDegrees - 32) * 5 / 9
End Function
Function Fahrenheit(cDegrees)
Fahrenehit = (cDegrees + 32) * 9/ 5
End Function
124 views
Usually answered in minutes!
×