Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to use a range in a custom function? | Excel Worksheet Functions | |||
Can a function return a Null (blank ) value? Maybe a custom functi | Excel Worksheet Functions | |||
using a range in a custom function | Excel Programming | |||
Translate range name passed as string to a custom function to range addresses! | Excel Programming | |||
Custom function to return output in multiple cells | Excel Programming |