Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a loop thus:
---------- For Each sMainScreen In Range("C4:CA21") Next sMainScreen --------- I need to get the row number for each pass of the iteration, how can I do that please? Thanks for any help. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a loop thus:
---------- For Each sMainScreen In Range("C4:CA21") Next sMainScreen --------- I need to get the row number for each pass of the iteration, how can I do that please? Inside the loop, sMainScreen.Row will give you that. If you haven't done so, I would recommend including this declaration statement in your procedure.... Dim sMainScreen As Range Then VBA's intellisense would provide you with the available properties (as memory joggers) to select from. Rick |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I enter formula sum(range+range)*0.15 sumif(range=3) | Excel Discussion (Misc queries) | |||
Excel Addin:Setting the range to the Excel.Range object range prop | Excel Worksheet Functions | |||
Range Question / error 1004: method Range of object Worksheet has failed | Excel Programming | |||
Range.Find returns cell outside of range when range set to single cell | Excel Programming | |||
how to? set my range= my UDF argument (range vs. value in range) [advanced?] | Excel Programming |