Guest User

Untitled

a guest
Dec 14th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Option Explicit
  2.  
  3. Public Function TemperatureConv()
  4.  
  5. Dim Celsius As Double
  6.  
  7. If CheckNumericCell(Sheet1.Cells(1, 2)) = True Then
  8. Celsius = Sheet1.Cells(1, 2)
  9. Else
  10. MsgBox "Please enter valid data for Temperature in Celsius"
  11. Exit Function
  12. End If
  13.  
  14. Sheet1.Cells(3, 2) = (9 / 5 * Celsius) + 32
  15.  
  16. End Function
Add Comment
Please, Sign In to add comment