Hello,
I have a table that I need to export and save as a CVS file.
Initially I had a code to export and save the table as a new excel file, with an specific name, but now I need to save data to csv format.
I already tried but I was not able to change the vba code…
Any suggestions would be greatly appreciated!
Thank you in advanced.
I have a table that I need to export and save as a CVS file.
Initially I had a code to export and save the table as a new excel file, with an specific name, but now I need to save data to csv format.
I already tried but I was not able to change the vba code…
Code:
Sub NewFILE()
Application.EnableEvents = False
Folha1.Range("B15:D" & Folha1.UsedRange.Columns(1).Find("*", , xlValues, , , xlPrevious).Row).Copy
Workbooks.Add
ActiveSheet.Name = Folha1.[C4].Text
[A1].PasteSpecial xlPasteValues
[A1].PasteSpecial xlPasteFormats
[A1].PasteSpecial xlPasteColumnWidths
[A1].Select
Application.CutCopyMode = False
Application.Dialogs(xlDialogSaveAs).Show Folha1.Range("C4")
Application.EnableEvents = True
End Sub
Any suggestions would be greatly appreciated!
Thank you in advanced.