View Single Post
 
Old 05-08-2013, 11:01 PM
fumei fumei is offline Windows 7 64bit Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

If you want to still use a macro, try:

Code:
Sub End_Date()
Dim myEnd As Date
Dim myStart As Date
myEnd = ActiveDocument.FormFields("End").Result
myStart = ActiveDocument.FormFields("Begin").Result
If myEnd <= myStart Then
   MsgBox "Term ending date must be after beginning date."
End If
End Sub
Reply With Quote