ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How I do to validate a date? (https://www.excelbanter.com/excel-programming/320366-how-i-do-validate-date.html)

Marcelo[_9_]

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





swisse

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


Lonnie M.

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.


Marcelo[_9_]

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




swisse

How I do to validate a date?
 
How did you write your macro or your formula?

Swisse


All times are GMT +1. The time now is 09:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com