Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 172
  • Last Modified:

Date Validatation

I have a colum of cells that I want to allow the user to only be able to enter in valid dates ex: 2/5/13.  However, when I changed the format to Date and locked the sheet so they could not change the format they are still able to add stupid stuff in like 2/5/13 (Annex).  How can I control this better in excel 2003?  

Thanks,
0
flfmmqp
Asked:
flfmmqp
2 Solutions
 
pony10usCommented:
From the menu bar:

Data
Validation
Change to Date
Input a beginning date (I use 1/1/1900)
Input an ending date (I use 12/31/2100)
Complete the other two tabs as desired

Then you need to copy/paste specail validation in the rest of the cells.
0
 
aikimarkCommented:
In the change event for the worksheet or the workbook, you can validate the data.  The event has a parameter that tells you the location that was changed (range object parameter).  You can check the column of the range to see if you need to validate it.

Use the IsDate() function.
0
 
Martin LissRetired ProgrammerCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now