$ 0 0 That's VBA. You need to create the file with the form in Excel as a template then open the template with ClosedXML to put your data.