antivitamin007
New Member
- Joined
- Mar 28, 2019
- Messages
- 4
Hi ive been working on a VBA project (Note: im still a novice and google everything I need to know) Ive developed a userform to capture some employee details and in the process to calculate the days to expiration of set dates against every new employee...
The sting that I use are as follow:
Cells(erow, 19).Formula = "=$J$2-today()"
Cells(erow, 20).Formula = "=$L$2-today()"
Cells(erow, 21).Formula = "=$M$2-today()"
Cells(erow, 22).Formula = "=$N$2-today()"
Cells(erow, 23).Formula = "=$O$2-today()"
Cells(erow, 24).Formula = "=$P$2-today()"
Cells(erow, 25).Formula = "=$Q$2-today()"
Cells(erow, 26).Formula = "=$R$2-today()"
When using the above command, I fail to have the formula "auto fill" to the next line by making the cell line reference absolute.
can you perhaps assist me in rectifying the matter please?
The sting that I use are as follow:
Cells(erow, 19).Formula = "=$J$2-today()"
Cells(erow, 20).Formula = "=$L$2-today()"
Cells(erow, 21).Formula = "=$M$2-today()"
Cells(erow, 22).Formula = "=$N$2-today()"
Cells(erow, 23).Formula = "=$O$2-today()"
Cells(erow, 24).Formula = "=$P$2-today()"
Cells(erow, 25).Formula = "=$Q$2-today()"
Cells(erow, 26).Formula = "=$R$2-today()"
When using the above command, I fail to have the formula "auto fill" to the next line by making the cell line reference absolute.
can you perhaps assist me in rectifying the matter please?