+ Reply to Thread
Results 1 to 11 of 11

Export Excel xlsx to delimeted csv file - diffing tool on git

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Export Excel xlsx to delimeted csv file - diffing tool on git

    Hi Guys,

    i am creating macro to export current xlsx file into delimated csv file to have diffing tool on bitbucket.

    Screenshot_6.png

    I want to export this in American US regional settings so they are using "." as decimal point.
    What i have to do i have to go to regional settings in windows 10, change to US settings (because default are polish), go to Excel and saved a file as CSV.

    Now when i switch to Polish regional settings and open csv i am sure that i have proper format:

    Screenshot_7.png

    Because now if Americans will open file - they will see screen like in first screen above (seperated columns format)

    How can i do this? Can i export TableQuery or someting like this?
    Please help,
    Best wishes,
    Jacek Antek
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Export Excel xlsx to delimeted csv file - diffing tool on git

    Hi, I think you will either have to write a macro to do this, and in the macro you make sure that you select the settings when exporting.
    So you must adapt the decimals, field separators, probably date formats too.
    Instead of Save As you create a text file and write it out line by line
    I'll download your files and see if I can help, but this is the first idea that comes to mind.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Export Excel xlsx to delimeted csv file - diffing tool on git

    o wow Keebellah love your help and love this forum,
    thank you very much.

    Seems to be very complex task.
    Creating text file hmm like new .txt?

    It seems very difficult for me.
    Best,
    Jacek

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Export Excel xlsx to delimeted csv file - diffing tool on git

    No it's not, I'll put it together and upload when I have something for you.

  5. #5
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Export Excel xlsx to delimeted csv file - diffing tool on git

    A csv file is also a plain text file only with the extension csv.
    You could also open your csv file in NOTEPAD and replace your delimitter with the required delimiter

  6. #6
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Export Excel xlsx to delimeted csv file - diffing tool on git

    hmm but i have to open notepad using code and replace from there.
    The best option would be to take used range and loop and change decimal point somehow and export to txt file maybe?

    Best,
    Jacek

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Export Excel xlsx to delimeted csv file - diffing tool on git

    Quote Originally Posted by jaryszek View Post
    I want to export this in American US regional settings so they are using "." as decimal point.
    Please Login or Register  to view this content.

  8. #8
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Export Excel xlsx to delimeted csv file - diffing tool on git

    If I look at your file there is no cell with a value showing a decimal symbol, just formulas, please explain

  9. #9
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Export Excel xlsx to delimeted csv file - diffing tool on git

    hi jindon,

    you are genious!

    thank you so much the very big issue was solved.
    the only solution in internet it is use change regional settings.

    Love you
    Best,
    Jacek

  10. #10
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Export Excel xlsx to delimeted csv file - diffing tool on git

    Keebellah thank you very much for support and help,

    jondon solved the issue. Now i can save and it is in good format.

    Best wishes for you!
    Jacek

  11. #11
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Export Excel xlsx to delimeted csv file - diffing tool on git

    Yes, I did not think of that, @Jindon thumbs up !!!

+ 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] Export specific rows of spreadsheet to new .xlsx file
    By Pojzon in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-21-2018, 09:56 PM
  2. [SOLVED] VBA, convert tool from XLSM to XLSX; I need ignore "locked file"
    By martin81 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-29-2016, 03:54 AM
  3. Replies: 3
    Last Post: 01-05-2014, 05:50 AM
  4. Replies: 6
    Last Post: 10-04-2013, 08:11 AM
  5. [SOLVED] Open a file with a button, allow it to be comma delimeted
    By skania in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2013, 04:19 PM
  6. Replies: 6
    Last Post: 08-28-2012, 03:51 AM
  7. Saving an excel in tab delimeted text adding two new columns in the .txt file
    By princesouvik in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-08-2009, 02:34 AM

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