If you want to store the information in Array from worksheets, you can do
that by this way

 

Sub StoreRangeInArray()

  Dim Arr

  Arr = Selection

If IsArray(Arr) Then

    MsgBox "Information Stored in Array" & vbCrLf & "Row  =" & UBound(Arr,
1) & vbCrLf & "Column =" & UBound(Arr, 2)

End If

End Sub

 

 

 

 

Regards

Rajan verma

+91 7838100659 [IM-Gtalk]

 

From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com]
On Behalf Of NOORAIN ANSARI
Sent: 03 May 2012 18:17
To: excel-macros@googlegroups.com
Subject: Re: $$Excel-Macros$$ working with array

 

Dear Eduardo,

 

Please try in this way..

 

Sub Array_Testing()

Dim test(50) As String

test(0) = Cells(1, 2)

test(15) = Cells(1, 3)

Cells(1, 10) = test(0) & " " & test(15)

End Sub

 

 

-- 
Thanks & regards,
Noorain Ansari
www.noorainansari.com <http://www.noorainansari.com/> 

 <http://www.excelmacroworld.blogspot.com/> www.excelmacroworld.blogspot.com

 

 

On Thu, May 3, 2012 at 6:11 PM, Eduardo Cereja <cerejaedua...@gmail.com>
wrote:

Hi , i need help to work with arrays. I want to create an array and put
information ( from cells) in a specific position of that array.  For
example.

 

Dim test(50) as string

test(0)= Cells(1,2)         ' cells(1,2)= "LT12"

test(15)=cells(1,3)         ' cells(1,3) "121"

 

cells(1,10)=test

 

 

but in cells(1,10) does note appear test(0) +test(15)

 

could anyone help-me?

 

Best regards.

-- 
FORUM RULES (986+ members already BANNED for violation)
 
1) Use concise, accurate thread titles. Poor thread titles, like Please
Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will
not get quick attention or may not be answered.
 
2) Don't post a question in the thread of another member.
 
3) Don't post questions regarding breaking or bypassing any security
measure.
 
4) Acknowledge the responses you receive, good or bad.
 
5) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
 
----------------------------------------------------------------------------
--------------------------
To post to this group, send email to excel-macros@googlegroups.com





 

 



 

-- 
FORUM RULES (986+ members already BANNED for violation)
 
1) Use concise, accurate thread titles. Poor thread titles, like Please
Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will
not get quick attention or may not be answered.
 
2) Don't post a question in the thread of another member.
 
3) Don't post questions regarding breaking or bypassing any security
measure.
 
4) Acknowledge the responses you receive, good or bad.
 
5) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
 
----------------------------------------------------------------------------
--------------------------
To post to this group, send email to excel-macros@googlegroups.com

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to