Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 187
Default myRow = Cells(Rows.Count, 2).End(xlUp).Row

Can someone explain to me what this piece of code is supposed to do?

myRow = Cells(Rows.Count, 2).End(xlUp).Row

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default myRow = Cells(Rows.Count, 2).End(xlUp).Row

seems to return the last row in column 2 that contains data


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default myRow = Cells(Rows.Count, 2).End(xlUp).Row

returns the row after the last "used" row - <possibly worded incorrectly

"Dave F" wrote:

Can someone explain to me what this piece of code is supposed to do?

myRow = Cells(Rows.Count, 2).End(xlUp).Row


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default myRow = Cells(Rows.Count, 2).End(xlUp).Row

find the last row in column 2 that has data.

goto B65536. Then hit the end key and then the up arrow.

that is what it essentially does.

--
Regards,
Tom Ogilvy


"Dave F" wrote:

Can someone explain to me what this piece of code is supposed to do?

myRow = Cells(Rows.Count, 2).End(xlUp).Row


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 187
Default myRow = Cells(Rows.Count, 2).End(xlUp).Row

Thanks all; this is helpful.

On Jun 19, 9:13 am, Tom Ogilvy
wrote:
find the last row in column 2 that has data.

goto B65536. Then hit the end key and then the up arrow.

that is what it essentially does.

--
Regards,
Tom Ogilvy



"Dave F" wrote:
Can someone explain to me what this piece of code is supposed to do?


myRow = Cells(Rows.Count, 2).End(xlUp).Row- Hide quoted text -


- Show quoted text -



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
count cells with multiple criteria and two rows Erin Excel Discussion (Misc queries) 2 January 21st 10 11:31 PM
Cells(Rows.Count, "b").End(xlUp).Row Kate[_2_] Excel Programming 1 May 25th 06 04:31 PM
How do I count nonblank cells in rows within Excel? JoJo New Users to Excel 1 February 14th 06 04:11 PM
MyRow error rocket0612[_2_] Excel Programming 3 June 20th 05 04:38 PM
problem with Rows.Count and comparing cells PZipko Excel Programming 3 July 9th 04 07:33 PM


All times are GMT +1. The time now is 03:58 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"