F
Fadi
I need to create a worksheet function that can return an
array i.e. that can
be used with the Ctrl+Shift+Enter.
for example :
- I need to be able to select a range (say A2:A10)
- Enter my formula using the function for example
=myfunction(now(), "week")
- Press Ctrl+Shit+Enter ,and the function would
automatically fill the cells
A2 to A10 with today's date, the date one week from now,
the date two weeks
from now, etc....
I know this can be done as a macro, as simple worksheet
function, but I
can't find out how to do it using UDFs.
Thanks
Fadi
array i.e. that can
be used with the Ctrl+Shift+Enter.
for example :
- I need to be able to select a range (say A2:A10)
- Enter my formula using the function for example
=myfunction(now(), "week")
- Press Ctrl+Shit+Enter ,and the function would
automatically fill the cells
A2 to A10 with today's date, the date one week from now,
the date two weeks
from now, etc....
I know this can be done as a macro, as simple worksheet
function, but I
can't find out how to do it using UDFs.
Thanks
Fadi