Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Stefi,
So you have one way, or Debug.Print ECell.Address(False, False, xlR1C1, , Range("B4:D5").Cells(1)) NickHK "Stefi" wrote in message ... I found a solution: ERNG.Row - ECELL.Row + 1 ERNG.Column - ECELL.Column + 1 Is this the best solution? Stefi "Stefi" ezt ķrta: Hi All, I have a For each cycle, like this: For Each ecell In erng Next ecell I can't figure out how to determine row and column indices of ECELL inside the cycle. I mean that I'd like to know for example, that the current ECELL is in the 3rd row and 2nd column of ERNG. Please help! Thanks, Stefi |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Nick,
I tried this way as well (I supposed that Range("B4:D5") should be substituted with my range ERNG) but it returned the string "RC", I couldn't find out why. Stefi €˛NickHK€¯ ezt Ć*rta: Stefi, So you have one way, or Debug.Print ECell.Address(False, False, xlR1C1, , Range("B4:D5").Cells(1)) NickHK "Stefi" wrote in message ... I found a solution: ERNG.Row - ECELL.Row + 1 ERNG.Column - ECELL.Column + 1 Is this the best solution? Stefi "Stefi" ezt Ć*rta: Hi All, I have a For each cycle, like this: For Each ecell In erng Next ecell I can't figure out how to determine row and column indices of ECELL inside the cycle. I mean that I'd like to know for example, that the current ECELL is in the 3rd row and 2nd column of ERNG. Please help! Thanks, Stefi |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Returning multiple indices for a lookup | Excel Worksheet Functions | |||
inserting a named range into new cells based on a named cell | Excel Discussion (Misc queries) | |||
Indices - Agreed Standards? | New Users to Excel | |||
Multiple Combo Box Indices? | Excel Programming | |||
If any cell in named range = 8 then shade named range | Excel Programming |