Thanks guys.
Leith - how do I copy the macro in step 1?
Today was the first time I've ever used Visual Basic and I just followed the instructions in the link in my post, I don't really understand it. As long as it does what I want it to do I'm happy.
Do I just apend the routine you wrote at the bottom of the code I've already got like this?
Private Sub Workbook_BeforeClose(Cancel As Boolean)
On Error Resume Next
Application.CommandBars("Cell").Controls("Insert Date").Delete
End Sub
Private Sub Workbook_Open()
Dim NewControl As CommandBarControl
Application.OnKey "+^{C}", "Module1.OpenCalendar"
On Error Resume Next
Application.CommandBars("Cell").Controls("Insert Date").Delete
On Error GoTo 0
Set NewControl = Application.CommandBars("Cell").Controls.Add
With NewControl
.Caption = "Insert Date"
.OnAction = "Module1.OpenCalendar"
.BeginGroup = True
End With
End Sub
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
frmCalendar.Show
End Sub
Once this is done, can I assign this macro to selected cells only?
Many thanks.
Bookmarks