Forum Discussion
Slyfox6915
Jul 20, 2022Copper Contributor
need help with saving a sheet to a new workbook csv
i found this code nomFichier = ActiveWorkbook.Path & "\" & "_" & ActiveSheet.name & Format(Now, "_yyyymmdd") 'ActiveSheet.Copy 'ActiveWorkbook.SaveAs nomFichier Application.DisplayAlerts = ...
- Jul 20, 2022
No,
It copies the active sheet to a new workbook.This new workbook is now the active workbook.
This will be saved as a .csv file and then closed. You are left with the original, unchanged workbook.
Slyfox6915
Jul 20, 2022Copper Contributor
will that just close my workbook ?
HansVogelaar
Jul 20, 2022MVP
No,
It copies the active sheet to a new workbook.This new workbook is now the active workbook.
This will be saved as a .csv file and then closed. You are left with the original, unchanged workbook.
- Slyfox6915Jul 20, 2022Copper ContributorThank you so much