TextBox1 Show Last Date of Month
TextBox2 Show First Date of Month
TextBox 3 Show Current Date
formula is
TextBox3 = Format(Date, "dd/mm/yyyy") e.g (11/08/2021)
show last date of month forumula
.TextBox2 = Format(CDate(Application.WorksheetFunction.EoMonth(.TextBox3.Value, 0)), "dd/mm/yyyy")
but this macro show 30/11/2021 date instead of date show is 31/08/2021
plse correct the code
TextBox2 Show First Date of Month
TextBox 3 Show Current Date
formula is
TextBox3 = Format(Date, "dd/mm/yyyy") e.g (11/08/2021)
show last date of month forumula
.TextBox2 = Format(CDate(Application.WorksheetFunction.EoMonth(.TextBox3.Value, 0)), "dd/mm/yyyy")
but this macro show 30/11/2021 date instead of date show is 31/08/2021
plse correct the code
Last edited: