VBA

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

VBA – Month Name

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

The MonthName function returns the name of the month for the specified date. Syntax MonthName(month[,toabbreviate]) Parameter Description Month โˆ’ A required parameter. It specifies the number of the month.Toabbreviate โˆ’ An optional…

Continue ReadingVBA – Month Name

VBA – Year Function

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

The Year function returns an integer that represents a year of the specified date. Syntax Year(date) Example Add a button and add the following function. Private Sub Constant_demo_Click() msgbox(Year("2013-06-30")) End…

Continue ReadingVBA – Year Function