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: 160
Default Help with using custum functions

Hi every1!!!

I know that if you create a custum function you can return avalue and take
in some parameters as well. So far i have no problems with this.

My problem is could i return more then one value, and not to the same cell,
that this function is being called from.

Example:
This function i need is used on X number or rows. (1000 so far)
Maybe all the rows will have data and maybe not,its dynamic.

So,lets say we figure this out on the data entered on line 1.

This function is called from column D1, and it takes in parameters A1 & B1.

It does a few calculations, and returns the result to calling cell D1,let
say it returns 34.

so it looks like this now:

A1 B1 C1 D1
30 4 -- 34
Could i also return another value from that function to cell C1 for example
something like 17.

so it looks like this:
A1 B1 C1 D1
30 4 17 34

and so one for the next rows that have values, the same thing would be done
as well.(dynamiclly, as needed)

If this is possible how would you do this from VBa, and if its not, is there
a way to do-it anyways.

Please let me know, i just cant figure-out how to copy data into another
cell from a dynamic custum function...

Any help or suggestion will be very much appreciated.
thx again,
PAtrick


 
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
Custum Cell Format - display 0 (zero) when cell is empty willemeulen[_15_] New Users to Excel 8 May 21st 09 04:03 AM
How to convert cell formula functions to code functions Adnan Excel Discussion (Misc queries) 1 October 1st 08 08:30 PM
efficiency: database functions vs. math functions vs. array formula nickname Excel Discussion (Misc queries) 2 July 14th 06 04:26 AM
Custum Excel RMB Context Menu Peter Huang Excel Programming 0 July 7th 04 10:48 AM
excel functions and User defined functions Kanan Excel Programming 4 May 20th 04 11:21 PM


All times are GMT +1. The time now is 06:23 AM.

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"