tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,913
- Office Version
- 365
- 2019
- Platform
- Windows
I want to write a function where the first argument is mandatory (the year) but subsequent arguments vary from no arguments to as many as entered.
Is that possible?
I don't want to write:
because I might have more than 7 Loc arguments.
Thanks
Is that possible?
I don't want to write:
Code:
Public Function MyFn(Year, Optional Loc1, Optional Loc2, Optional Loc3, Optional Loc4, Optional Loc5, Optional Loc6, Optional Loc7) As Long
End Function
because I might have more than 7 Loc arguments.
Thanks
Last edited: