Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default resizing a range

I am filling an array (UO) with unique values and then filling a target range
(UniqueOrders) with the values from the array.

The range is used as a 'rowsource' for a listbox and I am trying to resize
the range to eliminate empty cells.

The 'filling' part works fine, but after running the following code:
Workbooks("Orders.xls").Worksheets("Shipped").Rang e("UniqueOrders").Resize(Index01 - 1, 1).Value = .Transpose(UO)

I manually go to the worksheet where the the range is and find that the
range (UniqueOrders) still has the original number of rows(516) instead of
"Index01 - 1" (151) rows.

What do I need to do to get the range to be resized as desired?

TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default resizing a range

Workbooks("Orders.xls").Worksheets("Shipped").Rang e("UniqueOrders").Resize(I
ndex01 - 1, 1).Name = "UniqueOrders"

--
Regards,
Tom Ogilvy


"Tim Kredlo" wrote in message
...
I am filling an array (UO) with unique values and then filling a target

range
(UniqueOrders) with the values from the array.

The range is used as a 'rowsource' for a listbox and I am trying to resize
the range to eliminate empty cells.

The 'filling' part works fine, but after running the following code:

Workbooks("Orders.xls").Worksheets("Shipped").Rang e("UniqueOrders").Resize(I
ndex01 - 1, 1).Value = .Transpose(UO)

I manually go to the worksheet where the the range is and find that the
range (UniqueOrders) still has the original number of rows(516) instead of
"Index01 - 1" (151) rows.

What do I need to do to get the range to be resized as desired?

TIA



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
resizing a range of cells ckane Excel Discussion (Misc queries) 4 May 3rd 07 06:08 PM
Resizing a range of cells in a column ckane Excel Discussion (Misc queries) 0 May 3rd 07 02:38 PM
Resizing cells in a selection without resizing entire sheet Danielle via OfficeKB.com Excel Discussion (Misc queries) 4 August 11th 06 10:06 PM
Resizing a Range NetWave128[_3_] Excel Programming 3 April 24th 04 11:16 AM
missing items in sheet's activex list/combobox after resizing range Tim Zych[_2_] Excel Programming 1 August 11th 03 10:48 PM


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