Re: $$Excel-Macros$$ Re: Array_concept

2014-12-15 Thread Vaibhav Joshi
yes, but this appies to given example only.. + *I did not do this for you. God is here working through me for you.* On Mon, Dec 15, 2014 at 5:45 PM, Mandeep Baluja wrote: > > This one I was looking to Confirm from you experts. :) that it gets > transposes to *array format *& hence you get 1

$$Excel-Macros$$ Re: Array_concept

2014-12-15 Thread Mandeep Baluja
This one I was looking to Confirm from you experts. :) that it gets transposes to *array format *& hence you get 1D array Thankss On Saturday, December 13, 2014 3:27:26 PM UTC+5:30, Mandeep Baluja wrote: > > This Question is related to array before answering please check my file > and see what

Re: $$Excel-Macros$$ Re: Array_concept

2014-12-15 Thread Vaibhav Joshi
VBA array stores single dimensional data as shown below: [image: Inline image 1] And when you refer to Range(A1:A5), there is 5 rows & 1 column which looks like this.. [image: Inline image 2] So when you transpose Range(A1:A5), data stored in it gets transposes to array format & hence you get 1

$$Excel-Macros$$ Re: Array_concept

2014-12-15 Thread Mandeep Baluja
hey vabz you're very close to the answer See what you wrote Arr = Range("A1:A5") Returns Variant/Variant(1 to 5, 1 to 1) ..bcoz array size is 5x1, but when you transpose this you get only one dimensional array. This was my question how a two dimensional array (1 to 5, 1 to 1) on transposing mov

Re: $$Excel-Macros$$ Re: Array_concept

2014-12-15 Thread Vaibhav Joshi
Ok, you are not getting me. Arr = Range("A1:E5") Arr = Application.Transpose(Range("A1:E5")) --Above two returns Variant/Variant(1 to 5, 1 to 5) so even tho you use transpose Range("A1:E5") you get two dimensional array..because array size is 5x5 Arr = Range("A1:A5") Returns Variant/Variant(1 to

$$Excel-Macros$$ Re: Array_concept

2014-12-15 Thread Mandeep Baluja
arr = Range("A1:a5") 'Watch : - : arr : : Variant/Variant(1 to 5, 1 to 1) : Module1.ConvertText2Range arr = Application.Transpose(Range("A1:A5")) 'Watch : - : arr : : Variant/Variant(1 to 5) : Module1.ConvertText2Range see this for a single range it doesn't showing the columns. but for the

$$Excel-Macros$$ Re: Array_concept

2014-12-15 Thread Mandeep Baluja
Vabz I have already run your code and Arr = Application.Transpose(Range("A1:A10")) has no columns if i use MsgBox UBound(Arr, 2) *error subscript out of range. This means that there is no column in arr but only a single range with one dimension.* On Saturday, December 13, 2014 3:27:26 PM UT

Re: $$Excel-Macros$$ Re: Array_concept

2014-12-15 Thread Vaibhav Joshi
No, it is not so... Run this & debug, note carefully in local window.. Arr = Range("A1:E5") Arr = Application.Transpose(Range("A1:E5")) Arr = Range("A1:A5") Arr = Application.Transpose(Range("A1:A5")) Cheers!! + *I did not do this for you. God is here working through me for you.* On Mon, D

$$Excel-Macros$$ Re: Array_concept

2014-12-14 Thread Mandeep Baluja
Basically Whenever we move a range into an array the array is always two dimensional and there is no doubt on that . But if we transpose a range and move it into an array . it is showing one dimensional array. That means transpose function is doing something after transposing an range the r

$$Excel-Macros$$ Re: Array_concept

2014-12-14 Thread Mandeep Baluja
Basically Whenever we move a range into an array the array is always two dimentional.But if we transpose a range and move it into an array . how can it be one dimensional arr = Range("A1:A10") [image: Screen Clipping]