Hi
Is there a piece of code that could be added to this, so that if a sheet isn't available ihn te workbook it will just ignore and move onto the save the next CSV file instead of me having a debug issue.
Thanks
Is there a piece of code that could be added to this, so that if a sheet isn't available ihn te workbook it will just ignore and move onto the save the next CSV file instead of me having a debug issue.
Thanks
VBA Code:
Sub CSV_SAVE()
Sheets("t_faves").Select
ChDir "C:\SPREADS\"
ActiveWorkbook.SaveAs Filename:="C:\SPREADS\CSV\t_faves.csv", _
FileFormat:=xlCSV, CreateBackup:=False
Sheets("j_faves").Select
ChDir "C:\SPREADS\"
ActiveWorkbook.SaveAs Filename:="C:\SPREADS\csv\j_faves.csv", _
FileFormat:=xlCSV, CreateBackup:=False
Sheets("BF_FLAT").Select
ChDir "C:\SPREADS\"
ActiveWorkbook.SaveAs Filename:="C:\SPREADS\csv\BF_FLAT.csv", _
FileFormat:=xlCSV, CreateBackup:=False
ChDir "C:\SPREADS\"
ActiveWorkbook.SaveAs Filename:="C:\SPREADS\SETUP.xlsm", FileFormat _
:=xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
Sheets("SPREADSHEET COPY").Select
End Sub