View Single Post
 
Old 01-26-2014, 12:36 AM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The formula I posted will work fine for whatever the current year is - you don't need separate fields to determine whether the year is a leap year. using that formula for building calendars for different years, you could either:
• delete {SET Yr {DATE \@ YYYY}} and change all the Yr references to UserYear; or
• change {SET Yr {DATE \@ YYYY}} to {SET Yr UserYear}
Similarly, depending on how you're determining that the month being worked with is February, you could change or delete the {SET Mo {DATE \@ M}} and *(Mo=2) parts of the formula.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote