Hi Guys,
I have a piece of VBA which is exporting a sheet to a CSV file. I want this CSV to be comma separated with double qoutes around every column.
At this moment I get comma's as separator, but I don't know how to get the double qoutes around the text in the columns. This is what I have so far:
Can you guys help me out?
I have a piece of VBA which is exporting a sheet to a CSV file. I want this CSV to be comma separated with double qoutes around every column.
At this moment I get comma's as separator, but I don't know how to get the double qoutes around the text in the columns. This is what I have so far:
Code:
Sub Export()
dt = Format(CStr(Now), "yyyyMMdd_hhmmss")
Worksheets("Output").Activate
ThisWorkbook.Sheets("Output").Copy
ActiveCell.Value = ActiveCell.Value
ActiveWorkbook.SaveAs Filename:=Worksheets("Open").Range("B6") & "/Test" & dt & ".csv", FileFormat:=xlCSV, CreateBackup:=False, local:=True
ActiveWorkbook.Close
End Sub
Can you guys help me out?