Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Linest in VBA problem

Wneh you assign arYVariable or varXVariable it should be with a set statement

set arYVariable = Range("C22:C23
set varXVariable = Range("D30:E30")

"headly" wrote:

Rather than write values or formulas to cells, I'm writing a function that
requires a linest and intercept using variables that store ranges for x and y
inputs. So my code looks like this
varM = WorksheetFunction.LinEst(varYVariable, varXVariable)
where varYVariable is a range like C22:C23 and varxvariable is a range like
D30:E30 (although variables declared with variant data type)
The runtime error is
1004 - Unable to get the LinEst property of the WorksheetFunction class

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
LINESt [email protected] Excel Discussion (Misc queries) 1 December 8th 08 03:54 PM
Linest baron2ci Excel Worksheet Functions 0 April 8th 08 12:46 AM
LINEST bug Mark Schreiber Excel Worksheet Functions 2 April 27th 07 07:26 PM
problem with LINEST pm Excel Discussion (Misc queries) 1 February 13th 06 08:40 PM
problem with LINEST pm[_2_] Excel Programming 1 February 13th 06 08:40 PM


All times are GMT +1. The time now is 01:48 AM.

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"