Hello,I'm trying to make a VBA script that will calculate dynamically the number of days in a specific year for chosen month which will later be used for simple math.
My table looks like this:
A2 = 2019 (here I manually type in your number)
A5 = is a data validation list with months (this is generated with VBA)
A8 = is returned number of days in the selected month for 2019 here is my VBA code:
My knowledge of VBA is very basic and all though this is working is it possible to make it work, update results in A8 when I choose different item from the list?And if something is wrong with the code please do tell me... all the best G.Please Login or Register to view this content.
Bookmarks