Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For j = Cells(Rows.Count, "A").End(xlUp).Row To 6 Step -1
i know about the for loop, im just not sure about the xlUp stuff. thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Cells(Rows.Count, "A").End(xlUp).Row will get you to the last row in col A from the bottom up. With many macros, especially those that delete rows it is best to work from the bottom up. so you start at the bottom and look at each row above -- Don Guillett Microsoft MVP Excel SalesAid Software "Jim" <Jim @discussions.microsoft.com wrote in message ... For j = Cells(Rows.Count, "A").End(xlUp).Row To 6 Step -1 i know about the for loop, im just not sure about the xlUp stuff. thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It just determines the last filled row by working from the (very) bottom row
up. -- __________________________________ HTH Bob "Jim" <Jim @discussions.microsoft.com wrote in message ... For j = Cells(Rows.Count, "A").End(xlUp).Row To 6 Step -1 i know about the for loop, im just not sure about the xlUp stuff. thanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
cells(row.count, is the number of rows on the sheet (65536 on xl 2003).
the end(xlup) moves to the first populated cell in column A - it's going from the bottom of column A up, getting to the bottom of populated cells in col A (same as [ctrl] + [up arrow key]). counting from the bottom row to row 6 (numerically counting down from the last row to row 6)... -- MacGuy "Jim" wrote: For j = Cells(Rows.Count, "A").End(xlUp).Row To 6 Step -1 i know about the for loop, im just not sure about the xlUp stuff. thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
x means Y | Excel Discussion (Misc queries) | |||
K-Means, X-Means or other Clustering Algorithms | Excel Programming | |||
hi i would like to know what this means } | New Users to Excel | |||
Can someone tell me what VBA means? (Macro and VBA) | Excel Discussion (Misc queries) | |||
Can someone tell me what this means? | Excel Programming |