Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Using a Formula to get Range of Data to an Array

Hi,

I have a formula to get a variable range of data from my Task Log worksheet

TaskSpendLength = Worksheets("Task Log").Range("$GH$42")
tempRangeFormula = "='Task Log'!R44C190:R44C" & 190 +
TaskSpendLength

I am trying to use this formula to get an array of values from my Task Log
sheet so
that I can perform some array multiplication using the ScalarMult function
below

convertedArray = ScalarMult(Worksheets("Task
Log").Range(tempRangeFormula), Worksheets("Sheet2").Range("E6"))

where the E6 cell contains an integer

I get a Run time error: 1004 application defined or object defined error
appear, it is
something to do with this bit "Range(tempRangeFormula)" I think but I am
stumped. I have tried using the formula directly within the range brackets
and I get a similar erro. I can't work out what is wrong it may just be my
brain is frazzled seeing as its friday and all but if any one can help I
would be grateful.

Chris


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 364
Default Using a Formula to get Range of Data to an Array

try this site

http://www.bmsltd.ie/MVP/Default.htm

--


Gary


"Chris Paterson" wrote in message
...
Hi,

I have a formula to get a variable range of data from my Task Log
worksheet

TaskSpendLength = Worksheets("Task Log").Range("$GH$42")
tempRangeFormula = "='Task Log'!R44C190:R44C" & 190 +
TaskSpendLength

I am trying to use this formula to get an array of values from my Task Log
sheet so
that I can perform some array multiplication using the ScalarMult function
below

convertedArray = ScalarMult(Worksheets("Task
Log").Range(tempRangeFormula), Worksheets("Sheet2").Range("E6"))

where the E6 cell contains an integer

I get a Run time error: 1004 application defined or object defined error
appear, it is
something to do with this bit "Range(tempRangeFormula)" I think but I am
stumped. I have tried using the formula directly within the range brackets
and I get a similar erro. I can't work out what is wrong it may just be my
brain is frazzled seeing as its friday and all but if any one can help I
would be grateful.

Chris



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Using a Formula to get Range of Data to an Array

Cheers for that I will have a look :)

"Gary Keramidas" wrote in message
...
try this site

http://www.bmsltd.ie/MVP/Default.htm

--


Gary


"Chris Paterson" wrote in message
...
Hi,

I have a formula to get a variable range of data from my Task Log
worksheet

TaskSpendLength = Worksheets("Task Log").Range("$GH$42")
tempRangeFormula = "='Task Log'!R44C190:R44C" & 190 +
TaskSpendLength

I am trying to use this formula to get an array of values from my Task
Log sheet so
that I can perform some array multiplication using the ScalarMult
function below

convertedArray = ScalarMult(Worksheets("Task
Log").Range(tempRangeFormula), Worksheets("Sheet2").Range("E6"))

where the E6 cell contains an integer

I get a Run time error: 1004 application defined or object defined error
appear, it is
something to do with this bit "Range(tempRangeFormula)" I think but I
am stumped. I have tried using the formula directly within the range
brackets and I get a similar erro. I can't work out what is wrong it may
just be my brain is frazzled seeing as its friday and all but if any one
can help I would be grateful.

Chris





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
Using Named Range within an Array Formula Ivor Davies Excel Discussion (Misc queries) 2 August 25th 09 11:15 AM
different formula for ROW, array / range? nastech Excel Discussion (Misc queries) 1 September 20th 07 10:34 PM
Tricky array formula issue - Using array formula on one cell, then autofilling down a range aspenbordr Excel Programming 0 July 27th 05 03:59 PM
Array Formula, noncontigous range Werner Rohrmoser Excel Worksheet Functions 1 June 22nd 05 12:11 PM
Q: Best way to take data from VBA into graphs without writing data to worksheets? (Can a named range refer to an array in memory only?) KR Excel Programming 2 December 16th 04 11:12 PM


All times are GMT +1. The time now is 11:55 PM.

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

About Us

"It's about Microsoft Excel"