View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Huy Huy is offline
external usenet poster
 
Posts: 2
Default can 1 excel's DROP target change MULTIPLE cells?

Hi,

I am new to VBA and I am looking for a way to drop a function call String
(e.g. "=MyArrayFunction(...)") into a single Excel cell, and the effect
should be that the returned array (1-dimension) is fed into a range of Excel
cells (either horizontal or vertical).
In brief:
1. Drag a string into 1 cell
2. My function will compute and return an array
3. A range of cells, starting from the dropped target, will be filled with
values from the returned array

The biggest problem is that a function is restricted to manipulation of only
the Application.Caller. As a result, only the first element of the returned
array is seen in the dropped target (just 1 cell); the remaining elements of
the array are simply discarded.

Please suggest me a way to resolve or perhaps work around this problem.

Sincerely,
Huy