Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How I do to validate a date?

How I do to validate a date - example 29/2 with a formula or with VBA.
Thanks in advance




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default How I do to validate a date?

Why don't you try:
If IsDate(Activecell) Then
' write some code here that Excel will execute once it has validated it
is a date
End If

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default How I do to validate a date?

Hi, there are a number of good posts on 'date validation' at the
following groups:
http://groups-beta.google.com/group/...t.public.excel
http://groups-beta.google.com/group/...el.programming

Give them a look, they should get you pointed in the right direction.
If you get stuck there will be plenty of people around to answer your
question. HTH--Lonnie M.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How I do to validate a date?

This don't work - If IsDate(Activecell) Then
with "29/2"





"swisse" escreveu na mensagem
...
Why don't you try:
If IsDate(Activecell) Then
' write some code here that Excel will execute once it has validated

it
is a date
End If



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default How I do to validate a date?

How did you write your macro or your formula?

Swisse
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
validate date entered jatman Excel Worksheet Functions 3 October 31st 09 09:07 PM
validate alternate day date tikchye_oldLearner57 Excel Discussion (Misc queries) 7 March 13th 07 06:40 PM
validate a date range tikchye_oldLearner57 Excel Discussion (Misc queries) 4 March 13th 07 01:17 AM
Get Day from Date to Validate David Excel Discussion (Misc queries) 2 August 20th 06 02:31 PM
Validate a date Melker Excel Programming 4 November 30th 04 10:03 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"