View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 6,953
Default Testing for Date Format in VBA/Excel

Use the Vartype function from VBA

See Excel VBA help for details.

--
Regards,
Tom Ogilvy


"Jim Watkins" wrote:

I'm looking for a way to test, in an Excel VBA subroutine, whether a specific
cell value is (1) a numeric value that has been formated as date, (2) a
numeric value that has been formated as time, or (3) a "reggular" numeric
value.