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: 1
Default custom function - return range

I have a fuction ABC that defines days of the week in a month (example June
1, 2006 = Thurday) for all days in a month based on passed Excel ser_number.
Function has an internal array (WeekDays) to hold this data. At the end I
need to assign these values to return. How is this done, because what I did
didn't work?
Note: wkDaysInM is the range name defined on the Excel sheet D.
the ABC fuction is placed for the range as = ABC(C!F1)
see below...

'assign the weekday (example: Monday) to the range
For i = 1 To 31
smfGetWkDayfromDate.Range("wkDaysInM").Offset(i - 1, 0) = WeekDays(i)
Next i
End Function

Would you please help me.
Many thanks.

--
GIW
 
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
How to use a range in a custom function? Danny Excel Worksheet Functions 5 November 11th 08 12:48 AM
Can a function return a Null (blank ) value? Maybe a custom functi colin_e Excel Worksheet Functions 2 March 16th 06 02:36 PM
using a range in a custom function tad_wegner[_9_] Excel Programming 2 October 11th 05 05:41 PM
Translate range name passed as string to a custom function to range addresses! agarwaldvk[_25_] Excel Programming 3 September 7th 04 12:47 PM
Custom function to return output in multiple cells Asif[_3_] Excel Programming 1 December 2nd 03 06:22 PM


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