Here's a very good step-by-step guide on how to create your own pop-up calendar. It includes example workbooks with all the code. http://fontstuff.com/vba/vbatut07.htm
Create (or copy) the pop-up calendar frmCalendar described in the article. To have your calendar pop-up when you click a cell in columns K or L, add this code.- Right-click on your "Example" sheet tab (or any sheet you want this to pop-up on)
- Select View Code from the pop-up context menu
- Paste the code below in the VBA edit window
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count = 1 Then
If Target.Column = 11 Or Target.Column = 12 Then
If Target.Row > 11 Then
frmCalendar.Show
End If
End If
End If
End Sub
Bookmarks