+ Reply to Thread
Results 1 to 7 of 7

CSV to XLSX file convertion

  1. #1
    Registered User
    Join Date
    11-23-2015
    Location
    Mumbai
    MS-Off Ver
    MS Office 2013
    Posts
    29

    Question CSV to XLSX file convertion

    Hi All,

    I need a help for the below convertion and it will be a great help if some one can help me over the below convertion.

    The input file is a .CSV file (first file) and it needs to be converted in to a .XLSX file (second file) in the show below format (jpg, csv and xlsx files attached), data from .CSV file needs to be taken and put in to the second file in a way that it looks exactly like the .XLSX file.

    1) The data in first file (.CSV) will change time to time and depending on that data the second file (.XLSX) should reflect the correct information
    2) The event codes will vary every time so the data should be dynamically generated in the second file very time we run the macro
    3) Event time column (in the second file) should display the date and time in the shown format only (Sep 14 2017 10:56 PM)
    4) The data in event column should be displayed separately for separate events


    Many Thanks
    Santanu
    Attached Images Attached Images
    Attached Files Attached Files

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

    Re: CSV to XLSX file convertion

    This will output the result in Activesheet, so be careful since it deletes all the cells first.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-23-2015
    Location
    Mumbai
    MS-Off Ver
    MS Office 2013
    Posts
    29

    Re: CSV to XLSX file convertion

    Hi Jindon,

    Thanks for the help, i also have few queries with respect to the output file

    The row 2, 3 and 4 should be in row 1 along with row 1 data
    and row 5 should be in row 2

    also can you make the query work for all kindly of files names starting with anything not necessary PROD_DDS, it can be any file name example abc.csv or anything

    Regards
    Attached Images Attached Images

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

    Re: CSV to XLSX file convertion

    I wrote the code exactly according to your output, so I don't understand what you are talking about.

    If you are opening other csv file than the one posted in your first post, you should upload the file.
    Last edited by jindon; 09-27-2017 at 01:52 AM.

  5. #5
    Registered User
    Join Date
    11-23-2015
    Location
    Mumbai
    MS-Off Ver
    MS Office 2013
    Posts
    29

    Re: CSV to XLSX file convertion

    Thanks for the reply, If i run the script i see the output file (left side of the snapshot, also attached) the data on row 2, 3 and 4 should appear in row 1 (just like shown in the snapshot to the right) and row 5 data (refer snapshot to the left) should appear on row 2 (snapshot to the right) which is not happening

    The final output should look like the snapshot at the right

    attached is the output file which i am getting after running the below script, many thanks
    Attached Images Attached Images
    Attached Files Attached Files

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

    Re: CSV to XLSX file convertion

    It should produce exactly the same as your result.

  7. #7
    Registered User
    Join Date
    11-23-2015
    Location
    Mumbai
    MS-Off Ver
    MS Office 2013
    Posts
    29

    Re: CSV to XLSX file convertion

    Thanks a lot, will close this once i get a chance to confirm the same.

+ 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. Help with code to convert xls to xlsx and continue with xlsx file
    By 3345james in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2016, 11:47 AM
  2. Replies: 0
    Last Post: 07-08-2015, 07:24 AM
  3. Replies: 3
    Last Post: 01-05-2014, 05:50 AM
  4. How to add the columns data of several xlsx files of a folder in another xlsx file
    By ravikumar00008 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-25-2012, 04:29 AM
  5. Convertion of Excel sheet file to .txt file format
    By charu in forum Excel General
    Replies: 2
    Last Post: 06-27-2006, 07:10 AM
  6. .wb3 file convertion
    By rogersat in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. .wb3 file convertion
    By rogersat in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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