+ Reply to Thread
Results 1 to 5 of 5

Help with code to convert xls to xlsx and continue with xlsx file

  1. #1
    Forum Contributor
    Join Date
    07-17-2015
    Location
    Roanoke, Virginia
    MS-Off Ver
    2010
    Posts
    173

    Help with code to convert xls to xlsx and continue with xlsx file

    Currently I open an xls file and must convert to xlsx then close and reopen the file in order for macros to complete.
    The macros run fine after the conversion. I would just like to simplify the task since it is just going to others to manage in my absence.

    With multiple files open what code can I use to select the xls open file and convert it to xlsx and then be able to continue in that file with the remaining macro?

    As always - thanks in advance for your vba expertise.

    Jim

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Help with code to convert xls to xlsx and continue with xlsx file

    Jim

    Why do you need to close the file?

    Can't you just to a SaveAs to convert it to xlsx and then continue without closing it?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    07-17-2015
    Location
    Roanoke, Virginia
    MS-Off Ver
    2010
    Posts
    173

    Re: Help with code to convert xls to xlsx and continue with xlsx file

    Whether using compatibility converter or save as
    "To use the new & enhanced features of xlsx - you must close and reopen the workbook"

    As an example: I have several VLOOKUP formulas and with xls limitations the vlookup will not work. - SaveAs close and reopen and it works fine.

    ref: support.office.com - or use the compatibility converter under file and see the above msg.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Help with code to convert xls to xlsx and continue with xlsx file

    Where is the code that's doing the conversion located?

  5. #5
    Forum Contributor
    Join Date
    07-17-2015
    Location
    Roanoke, Virginia
    MS-Off Ver
    2010
    Posts
    173

    Re: Help with code to convert xls to xlsx and continue with xlsx file

    There is no code - yet.
    I manually save the xls file as an xlsx - close it and then reopen so the enhanced features of xlsx can be used.
    I'm looking for a code that saves the xls as xlsx - then closes it - and reopens the new xlsx workbook.
    Since others may be suing this - it needs not to be looking for a specific folder as this may change depending on how a computer is set 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] Macro to convert Xls file format to Xlsx
    By meus in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-06-2015, 04:42 AM
  2. [SOLVED] convert xlsx to csv and save to file directory
    By shaz0503 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-27-2014, 07:19 PM
  3. Replies: 3
    Last Post: 01-05-2014, 05:50 AM
  4. Replies: 6
    Last Post: 08-28-2012, 03:51 AM
  5. 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
  6. How to convert a file to xlsx
    By Raner in forum Excel General
    Replies: 2
    Last Post: 12-15-2011, 03:27 PM
  7. VBA for excel 2003. Open file dialog box, open 2007 file xlsx, continue with code
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2011, 12:12 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