Just wondering how can I close a worksheet without saving it in ExcelMacro? Also, how can I name a newly opened Excel work book using ExcelMacro?
Call ActiveWorkbook.Close(SaveChanges:=False)You don't name an Excel workbook. You name the file you save it to.
Here is the code to close without savingActiveWorkbook.Close Falseand,To save newly open excel sheet with nameActiveWorkbook.SaveAs Filename:="Your Desired Name"