PC Review


Reply
Thread Tools Rate Thread

can someone tell me what this means?

 
 
Jim
Guest
Posts: n/a
 
      20th Jun 2008
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 With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      20th Jun 2008

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
(E-Mail Removed)
"Jim" <Jim @discussions.microsoft.com> wrote in message
news:0FDE8C98-DA72-4350-A063-(E-Mail Removed)...
> 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 With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      20th Jun 2008
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
news:0FDE8C98-DA72-4350-A063-(E-Mail Removed)...
> 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 With Quote
 
MacGuy
Guest
Posts: n/a
 
      20th Jun 2008
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
K-Means, X-Means or other Clustering Algorithms Jim Microsoft Excel Programming 0 9th Jun 2007 09:46 PM
what this means? kathy Microsoft VC .NET 3 3rd Apr 2005 05:05 AM
Anyone know what this means? Veneta Windows XP General 0 18th Aug 2004 10:14 PM
what [] means? A.M Microsoft VB .NET 9 16th Apr 2004 02:13 AM
Can anyone tell me what this means GeneG Windows XP General 5 19th Feb 2004 03:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:08 AM.