+ Reply to Thread
Results 1 to 3 of 3

Export specific columns in different order without header to csv

  1. #1
    Registered User
    Join Date
    05-08-2014
    MS-Off Ver
    Excel 2003
    Posts
    5

    Export specific columns in different order without header to csv

    Hello,

    right now iīm struggling with some csv-export-problems.

    I want to export some columns of my worksheet to a csv-file. But i donīt want to export all of them, i just need for example: Columns B, D and G and inside the csv-file they should be in an different order like G, B, D .

    Maybe someone can help me with this problem.

    I already thought about using "union" to select the specific columns, but i canīt get this to work.

    I would really appreciate your help with this problem!

    Thank you in advance and with best regards
    w2kbug

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,493

    Re: Export specific columns in different order without header to csv

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    05-08-2014
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Export specific columns in different order without header to csv

    myWS.xlsm

    CSV_rxport.csv

    I uploaded a workbook and have an "before" and "after" sheet. The "after"-sheet looks like the csv should look like after the export. The uploaded csv-file is an example of my csvfile-macro included in the workbook.

    there are 2 macros inside the sheet,"csvfile" and "csvfile2". the first one is working and able to export all data in the table. The "csvfile2" is the one iīm "working" with, but this is the one that i canīt get to work.
    if someone wants to test the macro, you need to update the "target-directory" inside the macro, it uses the users desktop, but not dynamically (so you need to insert your name instead of my placeholder-letters inside the path)

    if i can / should provide further informations, please leave a message. Iīll do my best to reply as quickly as i can.

    Thank you in advance :-)
    Last edited by w2kbug; 06-24-2014 at 04:49 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] I need to export specific columns to a pipe delimiter file instead of entire worksheet.
    By lengwer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2013, 03:50 PM
  2. copy and paste columns in a specific order on a different excel sheet.
    By milkfloat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2013, 01:36 PM
  3. [SOLVED] Copy columns by header value and paste them in a specific order into another workbook
    By KeriM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2012, 11:13 AM
  4. Randomize order of specific sets of rows/columns
    By Eric Excels in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 08-28-2011, 03:38 PM
  5. Export data from excel to text in a specific order
    By daryllc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-01-2011, 12:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1