Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default How to set Range reaching the last row?

Hello,
Some functions allow specifying the range the following way:
Range("A1:A10")

How to include the last (max) row in that instead of A10?
Thanks,
Fred


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default How to set Range reaching the last row?

Sub RangeROver()
Dim r As Range
Set r = Range("A1:A" & Cells(Rows.Count, "A").End(xlUp).Row)
End Sub

--
Gary''s Student - gsnu200856


"fred" wrote:

Hello,
Some functions allow specifying the range the following way:
Range("A1:A10")

How to include the last (max) row in that instead of A10?
Thanks,
Fred



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
Reaching Max SilviaG Excel Discussion (Misc queries) 1 June 5th 08 09:54 AM
Reaching Max SilviaG Excel Discussion (Misc queries) 1 June 5th 08 02:37 AM
Reaching Max SilviaG Excel Discussion (Misc queries) 0 June 5th 08 01:03 AM
Making tab do a CRLF when reaching end of a range John A Excel Discussion (Misc queries) 3 May 10th 07 02:13 AM
Stay in Combobox when reaching end akyhne[_2_] Excel Programming 4 October 28th 04 03:57 PM


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