Guraknugen
New Member
- Joined
- Mar 15, 2017
- Messages
- 36
Hi!
I'm working on a class for managing two dates. Right now I need a very simple WeekDay function, with the following syntax:
The method looks, not very surprisingly, like this:
The idea is to use the already existing WeekDay function, but in this case VBA thinks that I try to use the class member WeekDay rather than the built-in WeedDay function.
So my question is: What is the syntax in this case to call the built-in WeekDay function from within this method in a class module?
I'm working on a class for managing two dates. Right now I need a very simple WeekDay function, with the following syntax:
Code:
oMyObject.WeekDay(dDate As Date) As Long
Code:
Private Function WeekDay(dDate As Date)
WeekDay = WeekDay(dDate, vbMonday)
End Function
So my question is: What is the syntax in this case to call the built-in WeekDay function from within this method in a class module?