csv export

  1. R

    VBA code to open CSV file and extract the data in a Excel sheet

    Hello! I have a issue with making a code that will extract the data/table from the csv file to a designated Excel(.xlxs) file and sheet. The thing is that the full table is only visible when .csv file is open with Excel Power Query option (Data--> From Text/CSV). So i tried to make some code...
  2. R

    Save CSV files without adding empty line at the end?!?

    Hi all! I've got a workbook with a macro that will export my various tabs, each as separate CSV files, and save them into a specified folder. The problem I'm having is that the files get saved with a blank line at the end. In order to use the files in another system, I have to open each one in...
  3. E

    Exporting to CSV, messed up date format.

    Using this: Private Sub Create_CSV() Dim content As String Dim Rng As Range Set Rng = Range("A12:AS30") Dim Path As String Dim FileName1 As String Dim FileName2 As String Dim FileName3 As String Dim sWB As Workbook, _ sWS As Worksheet Dim dWB As Workbook, _ dWS As...
  4. E

    VBA Macro to export a data range to a semi colon separated CSV file.

    Hello guys. I am new here and have tried to search for an answer that suits my needs, but to no avail. I have managed to do almost all I need it to do by copying functions from others suggestions here. Private Sub CommandButton1_Click() Dim content As String Dim rng As Range Set rng =...
  5. B

    VBA export to CSV error

    Hello all, I have the following code, but when this exports to a separate csv file, it comes up with an error message "File format and extension of xxx don't match. The filecould be corrupted or unsafe." Is there a way to stop this error message coming up, without going in and resaving it as...
  6. B

    CSV Export with extra spaces

    Hi, I am exporting to a csv with commas between my fields. My data looks fine in the sheet. When I export it, it puts a space sometimes before, after, or both each comma (looking like this: 4/30/2018 ,UNALOC, 2 , 67.91 ,Aney, David, 6102 , 4 , 133.76). My export code is: Public Sub...
  7. C

    Getting special characters to save within a CSV

    When I export my XLSM sheet to a CSV I have a special character that turns from the character Φ in the XLSM to a ? in the CSV I have tried saving the sheet as CSV then going into Tools->Web Options->Encoding-> and selecting Unicode (UTF-8) but is still turns this character into a ? when I open...
  8. P

    Saving worksheets to separate CSV files

    Hi, I'm new to VBA and I've been trying to record a macro/write VBA to save worksheets (in the same workbook) as individual .csv files. When I originally recorded the macro, it worked there and then but when I tried it again, it came up with run-time error 1004 (see below). I've tried updating...
  9. K

    No blank cells when saving as CSV

    Hi My aim is to export certain data from a spreadsheet to CSV. I need to ensure that there are no blank records in the CSV; any such records would have to be manually deleted before the CSV can be used for import in the next stage. I cannot seem to be able to achieve this. If, in the...
  10. B

    VBA macro to export specific range of cells to CSV

    Hey everyone, I am trying to export specific range of cells from excel sheet to CSV. In my case it should start from Row 3 and stop with last row and columns should be A:G I am pretty amateurish with VBA so most of things I google and compile yet, but im stuck at this moment. Ive got below...
  11. M

    Export CSV into UTF-8 Format

    Hello, I'm using code to generate individual CSV files for each worksheet of a single workbook. However, these individual CSV files that are generated need to be within UTF-8 format. Could someone assist me with modifying this code for those purposes? I greatly appreciate it! Thanks! Sub...
  12. G

    Splitting cells with 2 delimiters "; and |", can it be done?

    Hi This is my first post. I hope that it makes sense. I export a sales csv from my website which contains all the address information for the various couriers that I use. Recently orders overseas have increased and I am forever filling in CN22 forms, so I decided to also export out item...
  13. J

    Export multiple worksheets as CSV with worksheet name

    What do I add to this code to export my worksheets with their worksheet name? Currently it shoots them out as Sheet1, Sheet2, Sheet3 etc... Sub ExpCsv()Dim i As Integer For i = 1 To 3 Sheets(i).Activate Range("A1:W645").Copy Workbooks.Add ActiveSheet.Paste ActiveWorkbook.SaveAs...
  14. A

    Macro To Read .csv Files into Spreadsheet Colums and Label By Filename

    Hello. I seek assistance creating a macro that will enable me to read csv files into Excel. What I have are many csv files in "my documents" folder corresponding to data I acquired. There are four csv files per trial for my experiment which I want to keep. All four file names start by specifying...
  15. B

    creat csv of a tab and email

    Hi all, I have a file that I run my macro in and it creates a report on a particular sheet. I was wondering if it is possible to have a macro that will take this sheet that I have make a copy of it in a new file as a csv. Bonus if i can have that file emailed to someone. Maybe have a place on...
  16. S

    Extracting the right data from a CSV report

    I have created an Excel template to tidy up a CSV export report produced by vtiger, a popular open source crm. The report I have been using essentially lists all our business opportunities with each opportunity as a single separate row in the CSV and until now it has been very easy to simply...
  17. B

    Help Needed for Macro-Write Yahoo Finance Live data to CSV file in C:\Test.csv

    Hello Senior Members, I request some senior member to please help. I have put the following code in Excel http://download.finance.yahoo.com/d/quotes.csv?s=^DJI+AA+AXP+BA+BAC+CAT&f=st1l1v&ignore=.csv which downloads the Current data in Quotes.CSV file (opened new everytime I clk this link). My...
  18. E

    Large Numbers

    Hello Everyone, I use a certain package tracking software that allows me to export the tracking information into CSV format. The software does not yield any other options, one button that says "CSV Export" When I open the file in Excel, the numbers that are 15 digits are formatted with a...

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