PC Review


Reply
Thread Tools Rate Thread

Concatenate / Select Subset of Arrays

 
 
=?Utf-8?B?QW5kcmV3IEhhbGwgTlo=?=
Guest
Posts: n/a
 
      17th Mar 2007
My specific question relates to 2D arrays:

1. How to add say a new 10 column row to an existing array with x rows
already in it

2. How to create a new array from row 2 col 2 to row 6 col 8 from am
existing 10 x 12 array (pretty easy with a Range object).

Obviously I can do it by looping through the arrays and assigning values one
at a time but is there a better alternative.

Andrew
 
Reply With Quote
 
 
 
 
merjet
Guest
Posts: n/a
 
      17th Mar 2007
You can't do #1 in VBA. See "ReDim" in the VB Editor's Help.

Re #2 the one-at-a-time method is the only way I know (w/o using the
Range method). VB is not like APL.

Hth,
Merjet


 
Reply With Quote
 
merjet
Guest
Posts: n/a
 
      17th Mar 2007
About #1 I expect Transpose -- ReDim Preserve -- Transpose will work
for a 2-dimensional array.

Merjet


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select Subset of Rows/Cols Joe Thompson Microsoft Excel Misc 1 19th May 2010 05:41 AM
concatenate with arrays hande Microsoft Excel Worksheet Functions 4 3rd Aug 2009 03:35 AM
How to restrict any select to a subset? David Thielen Microsoft ADO .NET 8 29th Dec 2007 09:26 PM
Concatenate Arrays? Axel Dahmen Microsoft Dot NET Framework 3 30th Nov 2004 02:16 PM
Concatenate Byte[] arrays Marius Cabas Microsoft C# .NET 4 12th Nov 2004 11:20 AM


Features
 

Advertising
 

Newsgroups
 


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