I have a monthview calender that opens with a created macro button
but I'd like it to open the calender when a worksheet opens without having to use my macro button.
any help would be appreaciated
Thank you in advance. K
heres the code i have
Private Sub CMDCLOSE_Click()
Unload Me
End Sub
Private Sub MonthView1_DateClick(ByVal DateClicked As Date)
ActiveCell.Value = MonthView1.Value
Unload Me
End Sub
Private Sub UserForm_Click()
End Sub
Private Sub UserForm_Initialize()
Range("l4").Select
If IsDate(ActiveCell.Value) Then
MonthView1.Value = DateValue(ActiveCell.Value)
Else
MonthView1.Value = Date
End If
End Sub
but I'd like it to open the calender when a worksheet opens without having to use my macro button.
any help would be appreaciated
Thank you in advance. K
heres the code i have
Private Sub CMDCLOSE_Click()
Unload Me
End Sub
Private Sub MonthView1_DateClick(ByVal DateClicked As Date)
ActiveCell.Value = MonthView1.Value
Unload Me
End Sub
Private Sub UserForm_Click()
End Sub
Private Sub UserForm_Initialize()
Range("l4").Select
If IsDate(ActiveCell.Value) Then
MonthView1.Value = DateValue(ActiveCell.Value)
Else
MonthView1.Value = Date
End If
End Sub