Hello,
I am a new member of your site. I would like to thank everyone who shares in this forum. I would like to ask my first question with your permission.
Inside the Private Sub Worksheet_Change(ByVal Target As Range) procedure
Year in Cell D2 (drop down list and variable like 2021, 2022, 2023, 2024, ...))
Month in Cell D3 (drop down list and variable like January, February, March...)
According to the selected Year and Month
If the year is 2024 and the month is January
15th of December of the previous year (as 15.12.2023) in Cell F2
The 14th of the year and month selected in cell F3 (as 14.01.2024)
If the year is 2024 and the month is December
The 15th of the year and month selected in Cell F2 (as 15.12.2024)
In cell F3, enter the 14th of January of the month one year later (as 14.01.2025)
In other years and months
15th of the previous Month in Cell F2
I need a macro code that I can transfer the 14th of the next month to the F3 cell. I would be pleased if you can help
I am a new member of your site. I would like to thank everyone who shares in this forum. I would like to ask my first question with your permission.
Inside the Private Sub Worksheet_Change(ByVal Target As Range) procedure
Year in Cell D2 (drop down list and variable like 2021, 2022, 2023, 2024, ...))
Month in Cell D3 (drop down list and variable like January, February, March...)
According to the selected Year and Month
If the year is 2024 and the month is January
15th of December of the previous year (as 15.12.2023) in Cell F2
The 14th of the year and month selected in cell F3 (as 14.01.2024)
If the year is 2024 and the month is December
The 15th of the year and month selected in Cell F2 (as 15.12.2024)
In cell F3, enter the 14th of January of the month one year later (as 14.01.2025)
In other years and months
15th of the previous Month in Cell F2
I need a macro code that I can transfer the 14th of the next month to the F3 cell. I would be pleased if you can help