What you wrote is correct and fine. I am just pointing out that …
XLSX.CellRef("F1") == XLSX.CellRef(1,6)
and you may find that alternate form more convenient if you need to do math to get your anchor_cell
locations.
The Excel file needs to be open for writing when you go to addsheet!
or writetable!
.
Also, for posts on this forum please read through the link below, especially #2. Your code is difficult to read without formatting.