+ Reply to Thread
Results 1 to 8 of 8

CSV TO XLSX - Please Help

  1. #1
    Registered User
    Join Date
    06-20-2014
    Location
    London
    MS-Off Ver
    Office 2007
    Posts
    45

    CSV TO XLSX - Please Help

    Hi,

    I have the following VBA code, all files will be initially in CSV format, however, I would like them to be saved as XLSX, please help me tweak this code:

    Please Login or Register  to view this content.
    Thanks a lot.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: CSV TO XLSX - Please Help

    .
    .
    I "tweaked" the macros here :

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Logit; 05-23-2017 at 06:51 PM.

  3. #3
    Registered User
    Join Date
    06-20-2014
    Location
    London
    MS-Off Ver
    Office 2007
    Posts
    45

    Re: CSV TO XLSX - Please Help

    Hi,

    Thanks for your response. However, what about the rest of my code? It consists of other actions as well, they would not occur. Please kindly include the entire script and add this CSV to XLSX for me please.

    Thanks

  4. #4
    Registered User
    Join Date
    06-20-2014
    Location
    London
    MS-Off Ver
    Office 2007
    Posts
    45

    Re: CSV TO XLSX - Please Help

    Any help would be greatly appreciated!

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: CSV TO XLSX - Please Help

    .
    .
    This is a stubborn one. Taking time to get
    it ironed out.
    Last edited by Logit; 05-24-2017 at 11:58 PM.

  6. #6
    Registered User
    Join Date
    06-20-2014
    Location
    London
    MS-Off Ver
    Office 2007
    Posts
    45

    Re: CSV TO XLSX - Please Help

    Thank so much.

  7. #7
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,015

    Re: CSV TO XLSX - Please Help

    The issue we are facing is :

    The only way the macro code will paste the formula into the converted files ( .csv to .xlsx) is to first clear the sheet of all contents before pasting the formula.
    I am presuming this is unacceptable because all that you will be left with in the newly converted .xlsx file is just the formula in D2. Anything else that was
    in the sheet will be deleted.

    Some friends are looking at this also. Trying to create code that will get the job done without destroying any data already on the sheet.

    The code as presented should be working, so what is occurring is strange. May need to use some kind of ' workaround ' .

  8. #8
    Registered User
    Join Date
    06-20-2014
    Location
    London
    MS-Off Ver
    Office 2007
    Posts
    45

    Re: CSV TO XLSX - Please Help

    Thanks, it is working now. You are a star!

+ 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. Replies: 0
    Last Post: 01-14-2016, 03:22 PM
  2. excel extension randomly changed from .xlsx to .XLSX.QFQZAHN
    By brandonrepublic in forum Excel General
    Replies: 0
    Last Post: 02-04-2015, 05:12 AM
  3. Extracting different cells data from Entry.xlsx to Report.xlsx
    By paradise2sr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2014, 10:04 AM
  4. Replies: 1
    Last Post: 12-10-2013, 12:11 PM
  5. Merge Data from different .xlsx files & different sheet to a new .xlsx
    By QcSylvanio in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-03-2012, 01:11 PM
  6. Replies: 6
    Last Post: 08-28-2012, 03:51 AM
  7. 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

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