LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Running worksheet function in VBA

I am trying to run the worksheet function Minverse in VBA using:

result = Application.WorksheetFunction.MInverse(pt_array)

This works ok if pt_array is a range taken from a worksheet

(eg pt_array = range("A1:c3"))


However if I try and incorporate an array directly with VBA

(eg pt_array(1)=1 ; pt_array(2)=2 ... etc)

the function fails.

I guess I need to convert my array to a range somehow - and I'd rather
not write it out to a worksheet and then have to read it back in.

Any Ideas ?


---
Message posted from http://www.ExcelForum.com/

 
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
How do I set up a running balance worksheet ? Veronica Excel Worksheet Functions 2 April 18th 07 08:31 PM
New Running Total for each worksheet Jeff Excel Worksheet Functions 1 January 6th 07 07:30 PM
How do i get the running balance from one worksheet to another? Spoardy Excel Worksheet Functions 4 August 2nd 05 08:58 PM
Worksheet Running Very Slow Dmorri254 Excel Worksheet Functions 4 February 3rd 05 04:49 PM
Running Code in an XLA from a Worksheet Chrissy[_4_] Excel Programming 6 October 11th 03 11:27 PM


All times are GMT +1. The time now is 01:52 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"