ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   vba: isDate function (https://www.excelbanter.com/excel-programming/352146-vba-isdate-function.html)

phil

vba: isDate function
 
I need to check if a cell contains a date value of particular format
(dd/mm/yyyy). It looks like isDate checks only for a date value and not the
format of the date. Is there any other function that i can use to do this.

thanks.

JMB

vba: isDate function
 
MsgBox ActiveCell.NumberFormat = "dd/mm/yyyy"

"phil" wrote:

I need to check if a cell contains a date value of particular format
(dd/mm/yyyy). It looks like isDate checks only for a date value and not the
format of the date. Is there any other function that i can use to do this.

thanks.



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

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