Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel,microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a number of rows on an Excel worksheet. I'm writing a macro to loop
through each row and process the info on that row. The number of rows can be variable. How do I determine how many rows are in use? When I type CTRL-END, the sheet knows how many rows to go down. I'd like that capability in my macro. How I loop now... Which always ends up creating 999 rows, even if I only have 10 rows of data. 'Create an object to work with our sheet Set sht = Excel.Sheets(1) 'Loop through all the rows from 11 to 999 For Each fromCell In sht.Range("D11:D999") Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
use active cell to determine range | Excel Discussion (Misc queries) | |||
Value of cell to determine range in MAX Function | Excel Worksheet Functions | |||
Determine if Cell Address is within a Range | Excel Worksheet Functions | |||
Can VBA determine if a cell/range is in a group? | Excel Programming | |||
Can VBA determine if a cell/range is in a group? | Excel Programming |