Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear all,
I have to write a macro which allows user to highlight some consecutive cells in column A, then the user click a button on the worksheet to call a macro program and the program can detect the row numbers which cells are highlighted. Seems hard?! The cells selected can be different each time..... Can anyone advise? Thanks a million in advance. Ivan |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One way:
Public Sub WhichRows() MsgBox "Rows " & Selection.EntireRow.Address(False, False, xlA1) End Sub In article , Ivan wrote: Dear all, I have to write a macro which allows user to highlight some consecutive cells in column A, then the user click a button on the worksheet to call a macro program and the program can detect the row numbers which cells are highlighted. Seems hard?! The cells selected can be different each time..... Can anyone advise? Thanks a million in advance. Ivan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to fix a number of rows below the selected cells? | Excel Discussion (Misc queries) | |||
How To Detect A Negative Number In A Cell | Excel Worksheet Functions | |||
Detect selected chart point | Excel Programming | |||
Detect if a selected cell is within a named range | Excel Programming | |||
How to detect current active sheet number | Excel Programming |