Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How to declare the number of arguments to be unlimited and optional, as if
selection of a number of range / cells or insert numbers as if in the function of =SUM()? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Faraz
See if this gets you started: Public Function myFunction(ParamArray vals() As Variant) As String Dim L As Long For L = LBound(vals) To UBound(vals) myFunction = myFunction & TypeName(vals(L)) & ", " Next End Function Sub Test() Dim S As String S = myFunction(Range("A1:C5"), 45, 12.5, "Faraz") MsgBox S End Sub HTH. Best wishes Harald "FARAZ QURESHI" wrote in message ... How to declare the number of arguments to be unlimited and optional, as if selection of a number of range / cells or insert numbers as if in the function of =SUM()? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If Statement Unlimited In Excel | Excel Discussion (Misc queries) | |||
how can i make a cell unlimited | Excel Discussion (Misc queries) | |||
unlimited | New Users to Excel | |||
how to set up a worksheet for unlimited entries? | New Users to Excel | |||
Where can I get UNLIMITED Excel stock qoutes? | Excel Discussion (Misc queries) |