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: 852
Default Named cells in an array to a column and to a row

All the code works in the macro that this excerpt is from, so I did not include the entire macro.

The .Resize(columnsize:... puts the named cells values in a row just fine.

The .Resize(rowsize:... puts the first named cell value ONLY in ALL the cells in the column. So I get a column of nine values that is in cell AAAA2.

What gives with this??

Thanks.
Howard

Set myRng = wksSource.Range("AAAA2,AAAA4,FFFF2,GGGG4,NNNN2,OOO O4,VVVV20,XXXX8,XXXX20")

With wksSource
wksTarget.Range("C2").Resize(columnsize:=myRng.Cel ls.Count) = myArr
wksTarget.Range("B2").Resize(rowsize:=myRng.Cells. Count) = myArr
End With
 
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
Setting a column of a 2D array = named range SantaClaus Excel Programming 3 June 22nd 10 09:15 AM
Selecting all the active cells in a named column. Colin Hayes Excel Worksheet Functions 14 October 22nd 09 04:47 AM
Moving many named cells at once to the next column Andrew Davroche Excel Worksheet Functions 3 June 24th 07 04:03 PM
DIFFERENT NAMED CELLS IN COLUMN,HOW DO I GET LAST ONE ON BOTTOM? Confused at Work Excel Worksheet Functions 0 January 4th 06 03:18 PM
Possible to reference column of named range in array formula? Kel Good Excel Programming 4 November 15th 05 06:44 AM


All times are GMT +1. The time now is 03:16 AM.

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"