View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Turboj Turboj is offline
external usenet poster
 
Posts: 4
Default How to pop up a Macro when the cell in one column is selected-urge

I know how to call a Macro when one cell is selected as below. But this only
works when cell B1 is selected.

But anybody knows how to trigger the macro when any cell in one column is
selected (E.g when cell from B1 to B1000 is selected...) Thanks a lot!

+++++++++++++++++++++++++++++++++++++++++++++
Private Sub Worksheet_Selectionchange(ByVal Target As Range)

If Target.Address = "$B$1" Then
Call OpenCalendar
End If
End Sub
+++++++++++++++++++++++++++++++++++++++++++++