Sub SetExpirationAlert()
' Set the expiration date and time (adjust as needed)
Dim expirationDate As Date
expirationDate = #12/31/2023 12:00:00 PM#
' Calculate the time difference between now and the expiration date
Dim timeDiff As Double
timeDiff = expirationDate - Now
' Schedule a macro to run at the specified expiration time
Application.OnTime Now + TimeValue("00:00:00") + timeDiff, "ShowAlert"
End Sub