+ Reply to Thread
Results 1 to 2 of 2

Macro to create a copy of XlSB file and save as XLSX file without any formulas.

  1. #1
    Forum Contributor
    Join Date
    01-03-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2016,Excel 2013
    Posts
    186

    Macro to create a copy of XlSB file and save as XLSX file without any formulas.

    Hi Guys

    I'm trying to create a copy of an XLSB excel file to XLSX file with the help of a macro. The Source file has pivot table and datasheets.
    Below is the code which I found on the net but apparently the code debugs with Run time error 1004 Method 'copy of object'_worksheet failed @ the line Sh.copy
    Any help to correct the same is appreciated.

    Thanks

    Please Login or Register  to view this content.
    Don't forget to rate 1 who helped u, using "Star"

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Macro to create a copy of XlSB file and save as XLSX file without any formulas.

    I think I would just open the xlsb file, loop through all sheets and convert formulas to values and then save the xlsb file as an xlsx file. A macro like this should be sufficient so put this macro in an Excel file and change "sPath" to suit your needs.

    Please Login or Register  to view this content.
    Any bells and whisles you wish to add can be done if this looks like a workable solution to you.

    Alf

+ 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. How to save .xlsx file format to .csv by using macro
    By akmughal in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-19-2015, 05:10 PM
  2. Replies: 0
    Last Post: 06-12-2015, 07:24 AM
  3. [SOLVED] Need VBA Help on MS-Access to generate report & save to xlsb file to tageted file
    By breadwinner in forum Access Programming / VBA / Macros
    Replies: 6
    Last Post: 05-23-2014, 07:52 AM
  4. Convert a TXT in XLSX or XLSB without opening the file (VBA)
    By mortphil in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-20-2014, 08:27 AM
  5. Replies: 3
    Last Post: 01-05-2014, 05:50 AM
  6. [SOLVED] Macro to save file as XLSX in the same folder from where it originated
    By balandri in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2013, 02:28 PM
  7. Save workbook with multiple sheets as csv file and xlsx file
    By excel_vb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-25-2010, 02:41 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