Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default User Defined Function to run procedure

I want to create a User Defined Function which runs other procedues to
populate an array of cells. i.e.

User inputs "=GetMyData(arg1, arg2, arg3 ...)" into cell A1

Cells A3 to Bn is populated with relevant data.

Any pointers would be greatly appreciated.

Toy.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default User Defined Function to run procedure

Probably you need a UDF returning a FormulaArray. Check the following
link:

http://www.developersdex.com/vb/mess...2677&r=5859124


Mangesh


On Aug 8, 3:28 pm, wrote:
I want to create a User Defined Function which runs other procedues to
populate an array of cells. i.e.

User inputs "=GetMyData(arg1, arg2, arg3 ...)" into cell A1

Cells A3 to Bn is populated with relevant data.

Any pointers would be greatly appreciated.

Toy.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default User Defined Function to run procedure

UDF's can only return a value to the cell in which they are entered. They
can read the values of other cells, but can not alter the excel environment
such as formatting or changing colors or changing values in other cells.

Mangesh is suggesting that an Array formula might be appropriate. In this
case, the formula is entered in all the cells where a value will be returned.
(but the cells must be contiguous). Just make sure you read the link all
the way through. The poster Jim apparently wasn't knowledgeable about UDF's
being used as array formulas and gave some misinformation corrected by Peter
T.

--
Regards,
Tom Ogilvy




" wrote:

I want to create a User Defined Function which runs other procedues to
populate an array of cells. i.e.

User inputs "=GetMyData(arg1, arg2, arg3 ...)" into cell A1

Cells A3 to Bn is populated with relevant data.

Any pointers would be greatly appreciated.

Toy.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default User Defined Function to run procedure

Thanks guys,

This type of functionality is included in the Bloomberg addin, I think
it must have been coded in C+. I'm not quite at that stage but had
already started to look into xll addins.

Regards,

Toy.

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
Excel - User Defined Function Error: This function takes no argume BruceInCalgary Excel Programming 3 August 23rd 06 08:53 PM
How can I use SUM in a user defined function procedure? John Excel Programming 2 August 23rd 06 02:36 AM
Need to open the Function Arguments window from VBA for a user defined function. [email protected] Excel Programming 0 June 20th 06 03:53 PM
Defined Named cells lined to a Function Procedure swiftcode Excel Worksheet Functions 4 October 11th 05 08:30 AM
User-Defined Function pre-empting Built-in Function? How to undo???? MarWun Excel Programming 1 August 6th 03 09:31 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"