VBA – Time Value Function

  • Post author:
  • Post category:VBA
  • Post comments:0 Comments

The TimeValue Function converts the given input string to a valid time. Syntax TimeValue(StringTime) Example Add a button and add the following function. Private Sub Constant_demo_Click() msgbox(TimeValue("20:30")) msgbox(TimeValue("5:15")) msgbox(TimeValue("2:30:58")) End…

Continue ReadingVBA – Time Value Function

VBA – WeekDay Name

  • Post author:
  • Post category:VBA
  • Post comments:1 Comment

The WeekDayName function returns the name of the weekday for the specified day. Syntax WeekdayName(weekday[,abbreviate[,firstdayofweek]]) Parameter Description Weekday − A required parameter. The number of the weekday.Toabbreviate − An optional parameter. A…

Continue ReadingVBA – WeekDay Name

VBA – WeekDay

  • Post author:
  • Post category:VBA
  • Post comments:1 Comment

The WeekDay function returns an integer from 1 to 7 that represents the day of the week for the specified date. Syntax Weekday(date[,firstdayofweek]) Parameter Description Date − A required parameter. The…

Continue ReadingVBA – WeekDay