Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Worksheet Dimensions

What is the best way to get worksheet dimension for worksheets with non
contiguous rows and columns. The dimensions vary sheet to sheet.

Thanks
Paul


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Worksheet Dimensions

Using the keyboard Ctrl-End will go to the bottom right cell in the sheet
(ie lowest row with anything in it and furthest right column with anything
in it, anything being data or a format setting) if that helps you.


"Paul Ilacqua" wrote in message
...
What is the best way to get worksheet dimension for worksheets with non
contiguous rows and columns. The dimensions vary sheet to sheet.

Thanks
Paul



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 111
Default Worksheet Dimensions

What do you mean by "worksheet dimensions"? You want the last used row and
last used column?

You can focus on a row or column that always contains data for each record.
Then you can use something similar to:

range("a65536").end(xlup).row
range("iv1").end(xltoleft).column

--
Damon Longworth

Don't miss out on the 2005 Excel User Conference
Sept 16th and 17th
Stockyards Hotel - Ft. Worth, Texas
www.ExcelUserConference.com


"Paul Ilacqua" wrote in message
...
What is the best way to get worksheet dimension for worksheets with non
contiguous rows and columns. The dimensions vary sheet to sheet.

Thanks
Paul



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Worksheet Dimensions

Damon,
That should do it or get me close to my range that I need. Thank You.
Paul

"Damon Longworth" wrote in message
...
What do you mean by "worksheet dimensions"? You want the last used row and
last used column?

You can focus on a row or column that always contains data for each
record. Then you can use something similar to:

range("a65536").end(xlup).row
range("iv1").end(xltoleft).column

--
Damon Longworth

Don't miss out on the 2005 Excel User Conference
Sept 16th and 17th
Stockyards Hotel - Ft. Worth, Texas
www.ExcelUserConference.com


"Paul Ilacqua" wrote in message
...
What is the best way to get worksheet dimension for worksheets with non
contiguous rows and columns. The dimensions vary sheet to sheet.

Thanks
Paul





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Worksheet Dimensions


normally you'd use
..UsedRange.address

note that usedrange includes first to last cell that contains
either data and/or formatting and/or comments.

you can manually check the "last cell" of a sheet by
pressing CtrlEnd. if it is in an "unexpected" location this is probably
due to accidental or remaining formatting. tons of posts on that.


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Paul Ilacqua wrote :

What is the best way to get worksheet dimension for worksheets with
non contiguous rows and columns. The dimensions vary sheet to sheet.

Thanks
Paul



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
Specify shape dimensions SteveT Excel Discussion (Misc queries) 4 April 26th 10 09:41 PM
LOOKINGUP IN 2 DIMENSIONS FARAZ QURESHI Excel Discussion (Misc queries) 1 December 18th 08 11:56 AM
Fix dimensions Niniel Excel Discussion (Misc queries) 15 October 11th 07 03:47 PM
lookup on 2 (and 3!) dimensions [email protected] Excel Discussion (Misc queries) 2 April 11th 06 05:05 PM
Three Dimensions? Charminster Developments New Users to Excel 2 November 3rd 05 04:58 PM


All times are GMT +1. The time now is 06:11 AM.

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"