+ Reply to Thread
Results 1 to 5 of 5

[LF] A universal macro that saves a .xls file as .xlsx

  1. #1
    Registered User
    Join Date
    01-04-2013
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    30

    Question [LF] A universal macro that saves a .xls file as .xlsx

    I get a lot of .xls files from generated reports. I have to go through the Save As dialog every time to save them as .xlsx.

    The path is not always the same, nor is the file name. So what I need is a general macro for my background macro workbook that parses the file path, file name, then saves the file as .xlsx with the same name and path. I'm a little stumped on this one! Thanks!

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: [LF] A universal macro that saves a .xls file as .xlsx

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    01-04-2013
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: [LF] A universal macro that saves a .xls file as .xlsx

    patel45: That didn't do anything. Going step-by-step, it skipped the whole "Do" section after the first line.

  4. #4
    Registered User
    Join Date
    01-04-2013
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: [LF] A universal macro that saves a .xls file as .xlsx

    Figured it out. Simpler than I thought. This will work if the file extension is .xls. I imagine you'd want to use a find for the file name and amend the extension if you weren't simply adding an "X" and changing the file type.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: [LF] A universal macro that saves a .xls file as .xlsx

    Maybe:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-04-2013
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: [LF] A universal macro that saves a .xls file as .xlsx

    Hmm, wasn't aware of the FullName property. Thanks!

+ 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] Run a Macro every 7 days that saves the file in a different folder
    By Djflare in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2012, 03:33 PM
  2. 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
  3. Need to create a Macro that saves as a specific file type
    By DDR in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2012, 12:28 AM
  4. Debug macro that saves file
    By Subject_Name_Here in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2012, 06:03 PM
  5. Replies: 3
    Last Post: 09-11-2009, 03:38 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