Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / July 2006

Tip: Looking for answers? Try searching our database.

variable range

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 21 Jul 2006 02:29 GMT
I have a variable n.

I want to select a printarea using n.

like (50,1:n,8)

I can't see how you do that since selecting ranges only uses the "B1"
type of referance for cells, not the  (1,2) style.

John
protonLeah - 21 Jul 2006 04:26 GMT
Range(Cells(r1, c1), Cells(r2, c2)), where:
(r1,c1) are the row,col of the first cell and (r2,c2) are the row, col
of the last cell.   From your query, I suppose r2 =n-th row?

Signature

protonLeah

John - 21 Jul 2006 15:42 GMT
thanks... I couldn't find that in the help files.
John

> Range(Cells(r1, c1), Cells(r2, c2)), where:
> (r1,c1) are the row,col of the first cell and (r2,c2) are the row, col
> of the last cell.   From your query, I suppose r2 =n-th row?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.