Article ID: 266672 - Last Review: October 11, 2006 - Revision: 4.2 XL2000: Sample Macro to Determine If a Year Is a Leap YearThis article was previously published under Q266672 On This PageSUMMARY
In Microsoft Excel, you can determine whether a date occurs during a leap year by using a Microsoft Visual Basic for Applications macro.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. Sample Macro to Determine If a Year is a Leap YearFor more information about how to use the sample code in this article, click the article number below to view the article in the Microsoft Knowledge Base:212536
(http://support.microsoft.com/kb/212536/EN-US/
)
OFF2000: How to Run Sample Code from Knowledge Base Articles
214326
(http://support.microsoft.com/kb/214326/EN-US/
)
XL2000: Excel Incorrectly Assumes 1900 Is a Leap Year
REFERENCESFor additional information about leap years, click the article number below
to view the article in the Microsoft Knowledge Base:
214019
(http://support.microsoft.com/kb/214019/EN-US/
)
XL2000: Method to Determine Whether a Year Is a Leap Year
| Article Translations
|
Back to the top
