This VBA macro copies the active sheet to a new workbook, saves it with a file name based on a cell value, and closes the new workbook. It takes an invoice, saves it with a new name based on a cell, and closes it to move to the next invoice.
This VBA macro copies the active sheet to a new workbook, saves it with a file name based on a cell value, and closes the new workbook. It takes an invoice, saves it with a new name based on a cell, and closes it to move to the next invoice.
This VBA macro copies the active sheet to a new workbook, saves it with a file name based on a cell value, and closes the new workbook. It takes an invoice, saves it with a new name based on a cell, and closes it to move to the next invoice.
' Copy Invoice to a New Workbook ActiveSheet.Copy NewFN = "FILEPATH\" & Range("i5").Value & ".xlsx" ActiveWorkbook.SaveAs NewFN, FileFormat:=xlOpenXMLWorkbook ActiveWorkbook.Close NextInvoice End Sub