I get a value into sheet DATE with this piece of macro. I would want to add another controll in this mode:
GG = Mid(Sheets(“DATE”).Cells(2, 2), 1, 2)
MM = Mid(Sheets(“DATE”).Cells(2, 2), 4, 2)
AA = Mid(Sheets(“DATE”).Cells(2, 2), 7, 4)
I would want to add another var into code MESE and DECADE.
If the var MESE = 2 is refered to FEBBRAIO (Febrary) into sheet DATE (range A), if the var DECADE is “1” or “2” or “3” is refrered DECADE (range B, C, D)
i want similrar this
GG = Mid(Sheets(“DATE”).Cells(MESE , DECADE ), 1, 2)
MM = Mid(Sheets(“DATE”).Cells(MESE , DECADE ), 4, 2)
AA = Mid(Sheets(“DATE”).Cells(MESE , DECADE ), 7, 4)
how to make this?