Don't need code. On ribbon, External Data, Export tab select text> choose location and option(s), click next, specify character encoding on next dialog.
I got headers in the extract as expected, but i wanted to exclude them. I figured it out finally (well google did!)
Dim XL As Object
Set XL = CreateObject("Excel.Application")
With XL
.Visible = False
.displayalerts = False
.Workbooks.Open "C:\Users\Public\Documents\Autostore_File.csv"
.Rows("1:1").Delete
.ActiveWorkbook.Close (True)
.Quit
End With
Set XL = Nothing
I got the same thing (no headers) using the exporter and choosing no options in the initial dialog and then not choosing "Include field names on first row" in the subsequent dialog - no code. Not sure how much I helped because of the difference in approaches.
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.