Need to add multiple records from a loop in Excel. According to the given parameters, it adds to the first column and to the first row. What needs to be replaced by worksheet.cell(1, 1)
to add entries to the first column and to all subsequent rows?
for (var i = 0; i < users.length; i++) {
worksheet.cell(1, 1).string(users[i].NAME).style(style);
}