I'm making a module that returns the Name of todays Month, all i want to know is how to return this value. i.e. what do i put in the module so that when it is run, a value is returned.
e.g. TextBox.Text = TodaysMonth()
Sub TodaysMonth()
MyDate = Now() 'Returns todays month name
MonthNo = Month(MyDate)
MyMonthName = MonthName(MonthNo)
End Sub
I want the text box to show 'MyMonthName'
e.g. TextBox.Text = TodaysMonth()
Sub TodaysMonth()
MyDate = Now() 'Returns todays month name
MonthNo = Month(MyDate)
MyMonthName = MonthName(MonthNo)
End Sub
I want the text box to show 'MyMonthName'