Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default can someone tell me what this means?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default can someone tell me what this means?


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default can someone tell me what this means?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default can someone tell me what this means?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
x means Y MitzDriver Excel Discussion (Misc queries) 3 October 8th 09 12:32 PM
K-Means, X-Means or other Clustering Algorithms Jim[_65_] Excel Programming 0 June 9th 07 09:46 PM
hi i would like to know what this means } [email protected] New Users to Excel 1 February 24th 06 09:30 PM
Can someone tell me what VBA means? (Macro and VBA) AncoatsRed Excel Discussion (Misc queries) 1 January 30th 06 08:36 PM
Can someone tell me what this means? DennisE Excel Programming 1 January 29th 04 05:28 AM


All times are GMT +1. The time now is 06:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"