PC Review


Reply
Thread Tools Rate Thread

Check a column for correct type of data

 
 
=?Utf-8?B?VFdpbHNvbg==?=
Guest
Posts: n/a
 
      19th Oct 2006
I have a worksheet that has to have dates manually inputted where I then have
my own macro do some other stuff. Is there a way to check the A column for
date data and have a box popup telling them if they havent while also
stopping the macro?

Thanks
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      19th Oct 2006
one way

Sub checkdate()
For Each c In Selection
On Error Resume Next
If Not IsDate(c + 1) Then MsgBox c.Address '"not a date"
Next
End Sub


--
Don Guillett
SalesAid Software
(E-Mail Removed)
"TWilson" <(E-Mail Removed)> wrote in message
news:25B4D198-A812-46FB-AC01-(E-Mail Removed)...
>I have a worksheet that has to have dates manually inputted where I then
>have
> my own macro do some other stuff. Is there a way to check the A column
> for
> date data and have a box popup telling them if they havent while also
> stopping the macro?
>
> Thanks



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Correct Currency Data Type and Validation Coding LisaInAz Microsoft Access VBA Modules 3 4th Mar 2010 08:59 PM
What is the Correct Data Type? ryguy7272 Microsoft Excel Programming 3 12th Jun 2008 04:18 AM
The data in text column is wrong, but auto filter data is correct =?Utf-8?B?anVkeWFycm95bw==?= Microsoft Access 1 28th Jun 2006 08:25 PM
importing the correct data type george Microsoft Access Form Coding 1 12th Mar 2004 02:12 PM
Re: Query which includes a column whose data type is memo type is crashing david epsom dot com dot au Microsoft Access 0 28th Aug 2003 10:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:47 PM.