Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi I hve this code: Code: -------------------- Private sub Worksheet_Selectionchange(ByVal Target As Range) if target.address="$B$4" then msgbox"Hello" end if end sub -------------------- But I want this to work for a range of cells on the sheet, i.e.: Code: -------------------- Private sub Worksheet_Selectionchange(ByVal Target As Range) if target.RANGE="A2:E4" then msgbox "Hello" end if end sub -------------------- Ideas welcome tx -- tx12345 ------------------------------------------------------------------------ tx12345's Profile: http://www.excelforum.com/member.php...o&userid=24776 View this thread: http://www.excelforum.com/showthread...hreadid=571940 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Worksheet_SelectionChange | Excel Programming | |||
insert Worksheet_SelectionChange(ByVal Target As Range) through vba | Excel Programming | |||
Worksheet_SelectionChange(ByVal Target As Range) questions | Excel Programming | |||
Ranges:Target in Worksheet_SelectionChange(ByVal Target As Range) | Excel Programming | |||
Private Sub Worksheet_SelectionChange(ByVal Target As Range) | Excel Programming |