Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
maybe something like this:
If Weekday(Date, vbSunday) = 1 Then Calendar1 = Date Else Calendar1= Date + 8 - Weekday(Date, vbSunday) End If -- Gary "Patrick C. Simonds" wrote in message ... Is there any way in which this can be amended so that the date selected when the calendar is displayed that the next Sunday is selected (unless the current day is Sunday then I want the date to be the current date) Private Sub UserForm_Initialize() Calendar1 = Now() End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Userform Initialize | Excel Programming | |||
UserForm initialize | Excel Programming | |||
userform initialize | Excel Programming | |||
Initialize an array | Excel Programming | |||
Initialize macro | Excel Programming |