PC Review


Reply
 
 
=?Utf-8?B?QmhhcmF0aCBSYWphbWFuaQ==?=
Guest
Posts: n/a
 
      8th May 2007
Can I write into an 10x10 array all-cells-at-once, without loops? how?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      8th May 2007
Sub abc()

Set MyRange = Range("A1:J10")

MyRange.Copy Destination:=Range("A20")

End Sub

"Bharath Rajamani" wrote:

> Can I write into an 10x10 array all-cells-at-once, without loops? how?

 
Reply With Quote
 
=?Utf-8?B?QmhhcmF0aCBSYWphbWFuaQ==?=
Guest
Posts: n/a
 
      8th May 2007
can you write that into an array dim (1 to 10, 1 to 10) without a loop ? thx!

"Joel" wrote:

> Sub abc()
>
> Set MyRange = Range("A1:J10")
>
> MyRange.Copy Destination:=Range("A20")
>
> End Sub
>
> "Bharath Rajamani" wrote:
>
> > Can I write into an 10x10 array all-cells-at-once, without loops? how?

 
Reply With Quote
 
Alan Beban
Guest
Posts: n/a
 
      8th May 2007
You can if the array is originally declared as a dynamic array. E.g.,

Dim MyArray()
ReDim MyArray(1 to 10, 1 to 10)
MyArray = Range("A1:J10")

Alan Beban

Bharath Rajamani wrote:
> can you write that into an array dim (1 to 10, 1 to 10) without a loop ? thx!
>
> "Joel" wrote:
>
>> Sub abc()
>>
>> Set MyRange = Range("A1:J10")
>>
>> MyRange.Copy Destination:=Range("A20")
>>
>> End Sub
>>
>> "Bharath Rajamani" wrote:
>>
>>> Can I write into an 10x10 array all-cells-at-once, without loops? how?

 
Reply With Quote
 
=?Utf-8?B?QmhhcmF0aCBSYWphbWFuaQ==?=
Guest
Posts: n/a
 
      8th May 2007
Thx Alan, this works. Is the converse possible i.e.: to write from an array
into a worksheet range without using a for..next loop ?



"Alan Beban" wrote:

> You can if the array is originally declared as a dynamic array. E.g.,
>
> Dim MyArray()
> ReDim MyArray(1 to 10, 1 to 10)
> MyArray = Range("A1:J10")
>
> Alan Beban
>
> Bharath Rajamani wrote:
> > can you write that into an array dim (1 to 10, 1 to 10) without a loop ? thx!
> >
> > "Joel" wrote:
> >
> >> Sub abc()
> >>
> >> Set MyRange = Range("A1:J10")
> >>
> >> MyRange.Copy Destination:=Range("A20")
> >>
> >> End Sub
> >>
> >> "Bharath Rajamani" wrote:
> >>
> >>> Can I write into an 10x10 array all-cells-at-once, without loops? how?

>

 
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
VB to search a value in an array from a sheet then write another c bakbuk Microsoft Excel Programming 0 25th Feb 2010 07:53 AM
Read and write an array Dave L Microsoft Excel Programming 5 2nd Jun 2009 05:38 PM
Write out Javscript Array from C# =?Utf-8?B?Qw==?= Microsoft ASP .NET 2 23rd Apr 2007 01:07 PM
Write 3d array to range westcoasthockeyleague@gmail.com Microsoft Excel Programming 2 31st Dec 2006 09:47 AM
write array to range muster Microsoft Excel Programming 8 23rd Jun 2006 12:36 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:41 PM.