+ Reply to Thread
Results 1 to 8 of 8

Stop xlsb from running in compatability mode

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,083

    Stop xlsb from running in compatability mode

    The snippet of code below is what I'm using to copy the activesheet from an XLS workbook to a new workbook, then saving it as an XLSB, which then is used for interacting with various other xlsb workbooks. However, when I try to copy a whole sheet from one of those XLSBs to my new XLSB, I get an error that I can't paste that many rows. My new XLSB is the only workbook in my collection that says it's running in Compatibility mode. Why is it running in compatibility mode, and how can I fix it? Thanks.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Stop xlsb from running in compatability mode

    I haven't tested this but from what I have read, you can either open the file in non-compatibility mode

    Please Login or Register  to view this content.
    Or

    change your global setting to open xlsb files in non-compatibility mode (http://bensullins.com/excel-tip-defa...tibility-mode/)
    P.S. with Ben's example you would probably need t change the .xlsx to .xlsb before saving.

    Hope this helps.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,083

    Re: Stop xlsb from running in compatability mode

    But I'm not OPENING an xlsb in compatability mode, it's somehow being CREATED in compatibility mode. In an xlsb workbook I have a macro that copies a worksheet from an XLS workbook to a new workbook, and saves it as an xlsb. Since the XLS files are opened in compatability mode, the child of one of those, even though saved as XLSB which shouldn't require compatibility mode, runs in compatability mode. I'm afraid if I change my global setting for Excel to non-compatibility it wouldn't play with all the other xls files I have to work with.

    I can work around this by having a default xlsb workbook already created, but I'd rather see if there's a way to get past this more elegantly.

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Stop xlsb from running in compatability mode

    To the best of my knowledge, compatibility mode only kicks in when opening a file, not on saving a file. In other words there is no way to save "Excel, as you save this file, make sure when it opens in Compatibility Mode". Therefore this issue should only be appearing when the saved file is being opened up after being saved. Of course I may be completely wrong

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Stop xlsb from running in compatability mode

    If you copy a 97-2003 format sheet as a new workbook, it will remain in compatibility mode even after saving in an xml format until you close and reopen it.
    Everyone who confuses correlation and causation ends up dead.

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,083

    Re: Stop xlsb from running in compatability mode

    Thanks Romper; that's consistent with what I'm seeing. So, I guess I'll have to figure out how to close/reopen it without knowing it's true name.

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Stop xlsb from running in compatability mode

    If you saved it, you know its name, no?

  8. #8
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,083

    Re: Stop xlsb from running in compatability mode

    Well, I guess I do. It's on the user's desktop, but it's a consistent name, so easy enough to grab back. Thanks for pointing me to the obviouse.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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