LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Junior Member
 
Posts: 16
Default

Your worksheet function I'll not modify.
I give you the VBA function to judge if it is a date.
If it is a date, it will return true, otherwise it will return false.
The function DateJudge have 2 parametres
ra is a cell address, iyear is a condition that you can modify when the year =iyear, it can be recognized as a date.

Function DateJudge(ra As Range, iyear As Integer)
DateJudge = False
If IsDate(ra) Then
If Year(ra) = iyear Then DateJudge = True
End If
End Function


 
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
Unintended line connecting two data points EleanorPeregrine Charts and Charting in Excel 0 October 5th 12 10:22 PM
unintended format changes Excel 2007 Excel-man Excel Discussion (Misc queries) 3 November 13th 08 03:48 AM
Hiding a button when hiding rows fergusor Excel Discussion (Misc queries) 2 August 10th 06 02:31 PM
Hiding Column Also hiding text Cindy Excel Programming 0 April 6th 06 07:18 PM
#DIV/0! hiding GJR3599 Excel Discussion (Misc queries) 0 March 9th 05 07:54 PM


All times are GMT +1. The time now is 10:26 AM.

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"