Hi,
I have a code which will show the today date and expire date in msgbox by click the button in attach excel file (and the code was show below ).
But how to make msgbox show only working day at expire date?
Example,
Today date: now (assume to be Friday).
By adding 2 to today date, the expire date will show on Sunday.
Prefer (How to
By adding 2 to today date, the expire date will show on Tuesday (instate of Sunday).
BRPHP Code:
Sub adding()
Dim idate As String
Dim result As String
idate = Now
result = Now + 2
MsgBox "Today date: " & Format(Now, "dddd, dd / mmm / yy") & vbNewLine & _
"Expired date: " & Format(result, "dddd, dd / mmm / yy")
End Sub
KC
Bookmarks