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: 62
Default UDF expanding beyond its cell

Hello

I am looking for a relatively safe and stable way for a user defined
function to return some data outside of the cell that called it.
Basically I have in cell A1 a function "=MyFunc()" and I would like it
to return in the cells:
A1: "Row 1 txt"
A2: "Row 2 txt"
A3: "Row 3 txt"

the simple way to do that is to create a user defined function that
returns an array and to use the array formula {=MyFunc()} in range
A1:A3. But is there a way for a function that only sits in cell A1 to
return values in range A2 and A3?

One of the things I am a bit concerned is if I start putting in the
code for MyFunc some access to range A2 and A3, I am going to mess
with the calculation order of excel, i.e. excel didn't expect the
cells A2 and A3 to be affected by the calculation of the cell A1
(since they are originally empty cells). Would that be a source of
unstability?

If you've already tried to doing that, I would be interested in your
feedback

Thanks
Charles
 
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
Expanding a formula from a cell to a range ManhattanRebel Excel Discussion (Misc queries) 5 May 3rd 09 09:37 PM
Can I write an infinite amount in a cell with expanding the cell? adrnlnjnky Excel Discussion (Misc queries) 1 July 20th 07 10:32 AM
expanding cell size Missywhirlwind Excel Discussion (Misc queries) 2 June 5th 07 04:35 PM
Expanding numbers and letters in a cell tbriggs Excel Discussion (Misc queries) 4 September 15th 06 01:44 PM
how do I expand a cell without expanding column ashaback Excel Worksheet Functions 1 March 23rd 06 05:25 PM


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