LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Resize Named Ranges Help

Greetings,

I use the following code to automatically resize a named worksheet range of
contiguous data that is in one column and grows vertically.

With Worksheets("Sheetname").Range("WorkingData").Resiz e(1, 1)
.Parent.Range(.Item(1), .Parent.Cells(Rows.Count, .Column) _
.End(xlUp)).Name = "WorkingData"
End With

It was published in this group and has proven very useful.Unfortunately I
can't seem to write code that is this compact or find any references how you
combine Resize and various scenarios.

1. With the assumptions that the named worksheet range of contiguous data is
in multiple columns and grows vertically, how would you alter the code?
2. With the assumptions that the named worksheet range of non-contiguous
data is in multiple columns and grows vertically, how would you alter the
code?
3. With the assumptions that the named worksheet range of contiguous data is
in multiple columns and grows horizontally, how would you alter the code?
4. With the assumptions that the named worksheet range of non-contiguous
data is in multiple columns and grows horizontally, how would you alter the
code?
5. With the assumptions that the named worksheet range of contiguous data is
in multiple columns and grows vertically and horizontally, how would you
alter the code?
6. With the assumptions that the named worksheet range of non-contiguous
data is in multiple columns and grows vertically and horizontally, how would
you alter the code?

Thank you in advance for your help!!

Ray


 
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
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM
Resize Dynamic Ranges Don Guillett[_4_] Excel Programming 5 August 1st 04 04:06 AM
Resize Dynamic Ranges Chip Pearson Excel Programming 0 July 29th 04 04:22 PM
Resize Dynamic Ranges Frank Kabel Excel Programming 0 July 29th 04 04:16 PM
named ranges - changing ranges with month selected gr8guy Excel Programming 2 May 28th 04 04:50 AM


All times are GMT +1. The time now is 12:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"