View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Michael Vaughan Michael Vaughan is offline
external usenet poster
 
Posts: 71
Default Qn: Ensure Number is valid for a circle??

Hello Everyone,

I am trying to put in a error trap with a MsgBox to check and see if a
number that is input into a TextBox is NOT a valid number. The TextBox
input is for a Wind Direction such as 040 degrees, OR 180 degrees. Now,
since the direction of the wind is only valid for 360 degrees in a circle,
is there a way to ensure the number they input meets the criteria for a
degree. Example: If they put in the number 36, my wind formula will not
calculate the correct wind correction angle from the runway. The wind
direction MUST be 360 to calculate properly. Can I do a error routine to
ensure that??
Thanks in Advance... mv

PS: Tom... your my man!