seragrefaat
Board Regular
- Joined
- Nov 16, 2020
- Messages
- 53
- Office Version
- 365
- Platform
- Windows
this is a macro recording for what i want to do
I want to replace the above with a vba code because headers are not fixed names also rows of the table are not a fixed number.
Thanks
VBA Code:
Range("Table1[[#Headers],[Oct 4, 2020]]").Select
Selection.ListObject.ListColumns.Add
Range("Table1[[#Headers],[Oct 4, 2021]]").Select
ActiveCell.FormulaR1C1 = "Absence nu"
Range("O2").Select
ActiveCell.FormulaR1C1 = "=COUNTBLANK(Table1[@[Nov 4, 2020]:[Oct 4, 2020]])"
Range("O3").Select
Range("Table1[Absence nu]").FormulaR1C1 = _
"=COUNTBLANK(Table1[@[Nov 4, 2020]:[Oct 4, 2020]])"
ActiveWindow.SmallScroll Down:=-18
Thanks