Calendar
In the Worksheet_SelectionChange event hander, you'll need something like this:
If Target.Address = "$A$1" Then
'pop up your calendar when user selects cell A1
End If
If you wanted to pop up your calendar when a certain column is selected, you
do it like this:
If Target.Column = 1 Then
'pop up your calendar when user selects any cell in column A
End If
Note that the selectionchange event does not distinguish wether the cell was
selected via a mouse click or by moving the selection cursor with the
keyboard.
"Pasty" wrote:
I have recently started teaching myself VBA and am still getting to grips
with it. I have created a calendar and its all working fine but how do I get
it to only pop up if they select a certain column or cell.
Regards
|