+ Reply to Thread
Results 1 to 3 of 3

SaveAs xlsb

  1. #1
    Forum Contributor
    Join Date
    11-23-2004
    Location
    Bristol
    MS-Off Ver
    2016
    Posts
    225

    SaveAs xlsb

    Hi all, please can somebody advise me where I am going wrong, I have an Excel file put together in Excel 2002/2003 using xls.
    I have upgraded to Office 2010 and instead of using the original xls version have saved the file as an xlsb binary version purely because the file can be around 30Mb or higher depending how many worksheets are added.

    While using the xls file, when I press the "SaveAs" button, the file would SaveAs a specific filename without any warnings in the same folder as the original.

    Now I have upgraded, I am having issues where the file appears to save but in reality does not.
    I have looked on the web to see that a file format number must be used - 50 and have included this in the code but still nothing happens.
    Am I writing something wrong.

    Please Login or Register  to view this content.
    By pressing "Save" will save the open file as normal.
    By pressing "SaveAs" will save the open file with a filename with backup in its title without any warning messages of overwriting etc.

    Hope somebody can help.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: SaveAs xlsb

    Have you tried Application.EnableEvents =False before the SaveAs? Set it to True at the end obviously.

  3. #3
    Forum Contributor
    Join Date
    11-23-2004
    Location
    Bristol
    MS-Off Ver
    2016
    Posts
    225

    Re: SaveAs xlsb

    Hi Kenneth, thanks for your suggestion, yes I tried your options, I tried almost everything until this.

    Excel 2002/2003 would save a copy without any issues and overwrite the old file without warning messages.
    Running the same code in Excel 2010 it would crash time and time again, so changed the code to add an If statement.
    If the SaveAs button is pressed, it now deletes the backup file, then writes a new backup file, as there is not a backup file to overwrite, the warning message is not needed and does not cause any re-writing issues.

    Solved it.

    Thank you for your suggestion though.

+ 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] Personal.XLSB macro pasting into Personal.XLSB
    By davepoth in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-11-2015, 07:40 PM
  2. Running a Personal.XLSB Macro From Within Another Personal.XLSB Macro
    By js0873 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 06-23-2015, 09:58 AM
  3. [SOLVED] Personal.xlsb
    By deweyirl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-13-2015, 05:46 AM
  4. Replies: 0
    Last Post: 01-15-2015, 05:53 AM
  5. [SOLVED] More than 1 xlsb files at once in use?
    By 3nduranc3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2014, 08:32 AM
  6. [SOLVED] .xlsb
    By Crispy85 in forum Excel General
    Replies: 2
    Last Post: 06-19-2013, 04:50 AM
  7. [SOLVED] ActiveWorkbook.SaveAs function needs to save as .xlsb instead of .xlsm
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-21-2012, 10: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