PC Review


Reply
Thread Tools Rate Thread

copy array to range

 
 
Stefi
Guest
Posts: n/a
 
      18th May 2009
Hi All,

There is a simple way oy copying a range into an array, e.g.

normatomb = Range("normaszint")

Is there a similarly simple way of copying an array back to a range (other
then looping through the elements of the array)? Something like

normatomb.Copy Destination:=Range("F1")


Thanks,
Stefi

 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      18th May 2009
Try

Range("A1:C10").Copy Range("A30")

OR

Dim varTemp As Variant
varTemp = Range("A1:C10")
Range("A11:C20") = varTemp
'with the same dimensions

If this post helps click Yes
---------------
Jacob Skaria


"Stefi" wrote:

> Hi All,
>
> There is a simple way oy copying a range into an array, e.g.
>
> normatomb = Range("normaszint")
>
> Is there a similarly simple way of copying an array back to a range (other
> then looping through the elements of the array)? Something like
>
> normatomb.Copy Destination:=Range("F1")
>
>
> Thanks,
> Stefi
>

 
Reply With Quote
 
Stefi
Guest
Posts: n/a
 
      18th May 2009
Thanks, I was looking for the 2nd way.
Stefi

„Jacob Skaria” ezt *rta:

> Try
>
> Range("A1:C10").Copy Range("A30")
>
> OR
>
> Dim varTemp As Variant
> varTemp = Range("A1:C10")
> Range("A11:C20") = varTemp
> 'with the same dimensions
>
> If this post helps click Yes
> ---------------
> Jacob Skaria
>
>
> "Stefi" wrote:
>
> > Hi All,
> >
> > There is a simple way oy copying a range into an array, e.g.
> >
> > normatomb = Range("normaszint")
> >
> > Is there a similarly simple way of copying an array back to a range (other
> > then looping through the elements of the array)? Something like
> >
> > normatomb.Copy Destination:=Range("F1")
> >
> >
> > Thanks,
> > Stefi
> >

 
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
Fast copy method of sub array (=array range) possible? Thomas Lebrecht Microsoft VB .NET 0 19th Mar 2009 08:49 AM
Copy a range into an array =?Utf-8?B?Um9iZXJ0?= Microsoft Excel Programming 3 10th Jul 2008 03:23 PM
Using an Array to Speed-Up Range Copy JingleRock Microsoft Excel Programming 4 15th Sep 2007 08:17 AM
copy one array formula to an array range =?Utf-8?B?Z3VlZGo1NA==?= Microsoft Excel Programming 2 29th Oct 2006 07:38 PM
How Can I copy all value of the array into the range? sjoo Microsoft Excel Programming 0 8th Aug 2003 07:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:12 AM.