#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Array Help

I currently am using excel to gather data from an
instrument that is used in the lab. I can paste the
results from the instrument program into an excel sheet
using the paste special link, and the instrument program
will automatically update the sheet using a DDE. The
problem is it keeps overwriting the same cell (where the
pastespecial link is placed). The instrument program is
writing the data out in an array, and every time I try to
do anything to the array, it says you cant modify it. I
would like to just grab the first line of the array, and
move it to another worksheet. Then when the DDE updates, I
would like to have the second worksheet move down a row and
write the next piece of data. Can someone please help an
inexperienced excel user out. Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Array Help

Dim rng as Range, rng1 as Range
set rng = worksheets("Sheet2").cells(rows.count,1).End(xlup) (2)
set rng1 = Worksheets("Sheet2").Range("A5:M5")
rng.Resize(1,rng1.columns.count).Value= rng1.Value

--
Regards,
Tom Ogilvy

"steve yuchs" wrote in message
...
I currently am using excel to gather data from an
instrument that is used in the lab. I can paste the
results from the instrument program into an excel sheet
using the paste special link, and the instrument program
will automatically update the sheet using a DDE. The
problem is it keeps overwriting the same cell (where the
pastespecial link is placed). The instrument program is
writing the data out in an array, and every time I try to
do anything to the array, it says you cant modify it. I
would like to just grab the first line of the array, and
move it to another worksheet. Then when the DDE updates, I
would like to have the second worksheet move down a row and
write the next piece of data. Can someone please help an
inexperienced excel user out. Thanks in advance.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Complex conditional summing - array COUNT works, array SUM gives#VALUE fatcatfan Excel Worksheet Functions 4 November 18th 09 06:41 PM
Array formula: how to join 2 ranges together to form one array? Rich_84 Excel Worksheet Functions 2 April 1st 09 06:38 PM
Prevent cell/array references from changing when altering/moving thecell/array nme Excel Discussion (Misc queries) 1 September 19th 08 01:53 PM
meaning of : IF(Switch; Average(array A, array B); array A) DXAT Excel Worksheet Functions 1 October 24th 06 06:11 PM
combining cells and array from different sheets into an array to pass to IRR() [email protected] Excel Discussion (Misc queries) 3 September 11th 06 07:17 AM


All times are GMT +1. The time now is 02:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"