Good afternoon friends, I hope you are well.
I need to make some changes functional that I introduced in the Form Conf (frmconf) so that depending on the value assumed by the txtOpt.Value, the values that are shown in the txtTDFM.Value and the txtTDL.Value are equal to the result of the following formulas:
If txtOpt.Value = 1, 2 and 4
If txtOpt.Value = 3
The expected values for the month of September (due to technical requirement, the previous month is calculated) are: txtTDFM.Value = 9, txtTDL.Value = 21
I need to make some changes functional that I introduced in the Form Conf (frmconf) so that depending on the value assumed by the txtOpt.Value, the values that are shown in the txtTDFM.Value and the txtTDL.Value are equal to the result of the following formulas:
If txtOpt.Value = 1, 2 and 4
Code:
txtTDFM.Value = DAY(EOMONTH(TODAY(),-1))-(WORKDAYS.INTL(EOMONTH(TODAY(),-2)+1,EOMONTH(TODAY(),-1),""0000011"",('USUARIOS & PRIVILEGIOS'!$N$5:$N$34)))"
Code:
txtTDL.Value = NETWORKDAYS.INTL(EOMONTH(TODAY(),-2)+1,EOMONTH(TODAY(),-1),""0000011"",('USUARIOS & PRIVILEGIOS'!$N$5:$N$34))"
If txtOpt.Value = 3
Code:
txtTDFM.Value = DAY(EOMONTH(TODAY(),-1))-(NETWORKDAYS.INTL(EOMONTH(TODAY(),-2)+1,EOMONTH(TODAY(),-1),""0000011"",('USUARIOS & PRIVILEGIOS'!$N$5:$N$18)))"
Code:
txtTDL.Value = NETWORKDAYS.INTL(EOMONTH(TODAY(),-2)+1,EOMONTH(TODAY(),-1),""0000011"",('USUARIOS & PRIVILEGIOS'!$N$5:$N$18))"
The expected values for the month of September (due to technical requirement, the previous month is calculated) are: txtTDFM.Value = 9, txtTDL.Value = 21