Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Newbie Question .. what's this

Set Rng = Worksheets("Sheet1").Range("A3").End(xlDown)(2)
Set rng1 = Worksheets("Sheet2").Range("A1").End(xlToRight)(1, 2)


Ok, I understand all of this except what the (2) or the (1,2) do at th
end of the set statements.. can't find anywhere in the help that give
me an indication what those parameters are for.


Thanks in advance,
Stev

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Newbie Question .. what's this

The (2) refers to row 2 and of the current range.

(1,2) refers to row 1, column 2 of the current range.

The other code is creating a range from a certain point (A3 or A1), and
finding some end point, and then setting the range object to part of the
found range.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"stevem " wrote in message
...
Set Rng = Worksheets("Sheet1").Range("A3").End(xlDown)(2)
Set rng1 = Worksheets("Sheet2").Range("A1").End(xlToRight)(1, 2)


Ok, I understand all of this except what the (2) or the (1,2) do at the
end of the set statements.. can't find anywhere in the help that gives
me an indication what those parameters are for.


Thanks in advance,
Steve


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Newbie Question .. what's this

For your reading pleasure. It's by Alan Beban on Chip Pearson's web site:

http://www.cpearson.com/excel/cells.htm

It might help understand some addressing techniques.

"stevem <" wrote:

Set Rng = Worksheets("Sheet1").Range("A3").End(xlDown)(2)
Set rng1 = Worksheets("Sheet2").Range("A1").End(xlToRight)(1, 2)

Ok, I understand all of this except what the (2) or the (1,2) do at the
end of the set statements.. can't find anywhere in the help that gives
me an indication what those parameters are for.

Thanks in advance,
Steve

---
Message posted from http://www.ExcelForum.com/


--

Dave Peterson

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
Newbie question wayne New Users to Excel 6 June 27th 08 02:23 PM
Real Newbie newbie question Dave New Users to Excel 0 January 10th 07 07:55 PM
Newbie question: Berra Charts and Charting in Excel 2 December 11th 06 10:00 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
Newbie question Doh New Users to Excel 5 December 16th 04 09:31 PM


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