From: Bishop on
Is there a way I can check to see if a cell value has a date value... in any
format?
From: Rick Rothstein on
Use VB's IsDate function. For example...

If IsDate(Range("A1").Value) Then
' A1 contains something VB can interpret as a date
Else
' The contents of A1 does not look like a date to VB
End If

--
Rick (MVP - Excel)



"Bishop" <Bishop(a)discussions.microsoft.com> wrote in message
news:CCB34A4E-EFAD-43DD-A11E-C021A8F359E5(a)microsoft.com...
> Is there a way I can check to see if a cell value has a date value... in
> any
> format?

From: Gary''s Student on
Any cell with an integer value between 0 and 2958465 can, with proper
formatting, represent a date.
--
Gary''s Student - gsnu201002


"Bishop" wrote:

> Is there a way I can check to see if a cell value has a date value... in any
> format?
From: Rick Rothstein on
I thought the OP might want to check Text representations as well.

--
Rick (MVP - Excel)



"Gary''s Student" <GarysStudent(a)discussions.microsoft.com> wrote in message
news:6311C675-02FF-40A0-BD33-00F99F6E7379(a)microsoft.com...
> Any cell with an integer value between 0 and 2958465 can, with proper
> formatting, represent a date.
> --
> Gary''s Student - gsnu201002
>
>
> "Bishop" wrote:
>
>> Is there a way I can check to see if a cell value has a date value... in
>> any
>> format?

From: Gary''s Student on
You may be right. I didn't think of that.
--
Gary''s Student - gsnu201002


"Rick Rothstein" wrote:

> I thought the OP might want to check Text representations as well.
>
> --
> Rick (MVP - Excel)
>
>
>
> "Gary''s Student" <GarysStudent(a)discussions.microsoft.com> wrote in message
> news:6311C675-02FF-40A0-BD33-00F99F6E7379(a)microsoft.com...
> > Any cell with an integer value between 0 and 2958465 can, with proper
> > formatting, represent a date.
> > --
> > Gary''s Student - gsnu201002
> >
> >
> > "Bishop" wrote:
> >
> >> Is there a way I can check to see if a cell value has a date value... in
> >> any
> >> format?
>
> .
>