Export Table as CSV UTF-8

hcabs99

Active Member
Joined
May 9, 2006
Messages
257
Hi

Can anyone help me with the code i would need to extract a table to the users desktop as a csv utf-8, but also with No headers please?

Cheers
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
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.
 
Upvote 0
Solution
Thanks, was not aware of this, but any idea how i can do it so i exclude the header please?
 
Upvote 0
Did you try it and got headers or are you just assuming you'll get them?
 
Upvote 0
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

Thankyou for your help and advise .
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,221,531
Messages
6,160,379
Members
451,642
Latest member
mirofa

We've detected that you are using an adblocker.

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.
Go back
Back
Top