Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default Running LinEst() from VBA

I am trying to run the linest() function from a VBA procedure, but keep
getting the
"Unable to set the FormulaArray property of the Range class" error message.
I am using the following VBA code within the procedure.
' select range for primary cubic values
ActiveSheet.Range("E25:H29").Select

' run linest() function
Selection.FormulaArray = _
"=LINEST(.Range(Y_rngStr)& "", "" & .Range(X_rngStr)& ""^{1,2,3},,TRUE)"""
Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Running LinEst() from VBA

I have answered this often in the past. Here is a link to those answers:

http://tinyurl.com/yrmeeq


--
Regards,
Tom Ogilvy


"Mitch" wrote:

I am trying to run the linest() function from a VBA procedure, but keep
getting the
"Unable to set the FormulaArray property of the Range class" error message.
I am using the following VBA code within the procedure.
' select range for primary cubic values
ActiveSheet.Range("E25:H29").Select

' run linest() function
Selection.FormulaArray = _
"=LINEST(.Range(Y_rngStr)& "", "" & .Range(X_rngStr)& ""^{1,2,3},,TRUE)"""
Any suggestions?

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
LINEST pjk@boro Excel Discussion (Misc queries) 2 February 20th 06 09:56 AM
Linest - Why did they do that? cseeton Excel Discussion (Misc queries) 2 March 11th 05 12:45 PM


All times are GMT +1. The time now is 10:48 PM.

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"