Forum Discussion

Slyfox6915's avatar
Slyfox6915
Copper Contributor
Jul 20, 2022
Solved

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 = ...
  • HansVogelaar's avatar
    HansVogelaar
    Jul 20, 2022

    Slyfox6915 

    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.