Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I tested the following macro in Excel 97 and Excel 2000, and got the similar result. (perhaps these properties use the same function (SELECT.SPECIAL in excel4) internally) Private Sub Worksheet_SelectionChange(ByVal Target As Range) MsgBox Target.Address End Sub Sub test() Dim R As Range Range("A1").Select Range("B1") = 1 Range("B2") = "=B1" Range("A2:A3").FormulaArray = "=1" Set R = Range("A1").CurrentRegion '2 times Set R = Range("A2").CurrentArray '2 times Set R = Range("A1").SpecialCells(xlCellTypeFormulas) '1 time Set R = Range("A1").SpecialCells(xlCellTypeConstants) '1 time Set R = Range("A1").SpecialCells(xlCellTypeBlanks) '1 time Rows(2).Hidden = True Set R = Range("A1").SpecialCells(xlCellTypeVisible) '1 time Rows(2).Hidden = False End Sub BTW, clicking row and column headings (1, 2, 3... , A, B, C...) also fire the selection change event. -- HTH, okaizawa |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ActiveCell.CurrentRegion property | Excel Programming | |||
Using XP Events with Excel 2000 Users | Excel Programming | |||
How-To - Forwarding Excel 2000 events to .Net application | Excel Programming | |||
Triggers events | Excel Programming | |||
.CurrentRegion in Excel functions | Excel Programming |