View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Leith Ross[_263_] Leith Ross[_263_] is offline
external usenet poster
 
Posts: 1
Default VBA to find next Monday


Hello Byron,

Here is a VBA macro to Return the next Monday from today.


Code:
--------------------

Public Function NextMonday() As Date

Dim D As Integer
Dim N As Date

D = Weekday(Now)
N = Now() + (9 - D)

NextMonday = N

End Function

--------------------

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=484594