T
Tia
Hey Mike,
Is there any way to make the calendar close automatically once a date is
selected? Also, I moved the calendar to another workbook but need to know if
I want a calendar to pop-up on different worksheets within that workbook if I
have to put the code in every tab.
Thanks,
Is there any way to make the calendar close automatically once a date is
selected? Also, I moved the calendar to another workbook but need to know if
I want a calendar to pop-up on different worksheets within that workbook if I
have to put the code in every tab.
Thanks,
Was this post helpful to you?Mike H said:sTia,
Sadly no. To do that you would need to create the userform in your
Personal.xls at the moment it exist only in that particular workbook.
What you do is go back to vb editor right click the userform in project
explorer and remove the userform and you will be asked whether you want to
exppport it fiirst. Click OK
Then import it in personal.xls
Now insert a module in personal.xls along these lines
Sub RunCal()
frmCalendar.Show
End Sub
and finaly change the code that calls the calendar in your workbook to this
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("B5, C5, A10, A15, B22, D30")) Is Nothing Then
Application.Run "Personal.xls!RunCal"
End If
End Sub
Mike