+ Reply to Thread
Results 1 to 25 of 25

PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

  1. #1
    Registered User
    Join Date
    10-26-2012
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    I have created a customized toolbar using macros in Excel 2010 on a Windows 7 operating system. The macros are stored in PERSONAL.XLSB (i.e. they are global and can be used on excel document). Only when multiple instances of Excel (e.g. opening more than 1 excel file) are opened in Caseware Working Papers 2012 (Version 2012.00.033 (Release 2)), do we get the following error message:

    "FILE IN USE
    PERSONAL.XLSB is locked for editing
    by [User]
    Open 'Read-Only' or click 'Notify' to open read-only and receive notification when the document is no longer in use.


    Button options: "Read only", "Notify" and "Cancel".

    For now, we click on "Read only" and we can still use the customized toolbar on all excel documents.

    Is there any way to resolve this issue such that users are not having to click on "Ready only" every time they want to open multiple instances of Excel inside Caseware? (This does not happen outside of Caseware).

    Thanks.

  2. #2
    Registered User
    Join Date
    10-26-2012
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    From further use of the macros in PERSONAL.XLSB, it is not caseware specific. Essentially, anytime you open a separate instance of the Excel, the message error message pops up.

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    in the vb editor change the IsAddin property of the personal.xlsb workbook to true and save it. its macros won't appear in the macros dialog but if you have a toolbar to run them that shouldn't be a problem
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Registered User
    Join Date
    10-26-2012
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    Thanks for your message. Unfortunately, the IsAddin property does not save and so the error message continues to pop up. In addition, anytime a new excel workbook is opened, it opens the personal.xlsb (because the file is in XLSTART) rather than book.xlsx.

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    that property does save with the file. once you have changed it run this code from the immediate window
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-26-2012
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    I'm not sure if I am doing this correctly because it does not seem to work. This is what I am doing:

    In Microsoft Visual Basic for Applications window:
    1. Click on "ThisWorkbook" under "VBAProject (PERSONAL.XLSB)" in Project - VBAProject in left pane
    2. Navigate to "IsAddin" in Properties - ThisWorkbook in left pane and change it to True
    3. Created a new module (macro) and inserted your code above into it
    4. Run the macro in 3. above

    I close down the excel workbook (the only workbook open), open a new workbook and then its VBA window and find the isAddin property reset back to False.

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    do you have another excel instance open when you are saving the workbook?

  8. #8
    Registered User
    Join Date
    10-26-2012
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    No. I only have 1 instance of excel open where I set the isAddin property and try to save it. It does not seem to stick.

  9. #9
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    can you post the actual personal.xlsb file?

  10. #10
    Registered User
    Join Date
    10-26-2012
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    I don't think I can, I am not sure if there is any confidential information associated with it since this is an office setting.
    Do you have any other suggestions on what I can look for and change?

  11. #11
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    1. make sure that the file is not set to read-only
    2. run this code
    Please Login or Register  to view this content.
    then restart excel and check if its isaddin property has been set

  12. #12
    Registered User
    Join Date
    10-26-2012
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    I ran the code and it changed the isAddin property to true. BUT when I restarted excel, the property was set to 'false' again.

    I also ran the code on open workbook, which changed the setting on the first instance of excel that opened but a second instance of excel yielded the same error message as before.

    Somehow it is not sticking.

  13. #13
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    did you check the file is not read only? can you remove all code and data from the workbook and post it?

  14. #14
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    if nothing else works you could create an actual add-in for your code

  15. #15
    Registered User
    Join Date
    10-26-2012
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    Are you able to download this file?
    Attached Files Attached Files

  16. #16
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    I'm afraid I owe you a serious apology. excel 2007 and later format workbooks behave differently to the older .xls files-if you set the Isaddin property of an .xlsm or .xlsb file to true, it does indeed get reset to false every time you open it and the workbook also gets unhidden in the process! you will either have to use an xls workbook (which retains the property) or create an add-in. the add-in is probably a better option

    again, I apologize for steering you in the wrong direction this whole time

  17. #17
    Registered User
    Join Date
    10-26-2012
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    Thanks for letting me know. It seems as though there is no quick fix for this. We wanted to keep things simple because there are so many add-ins from other sources that we did not want to create conflicts or other issues. Excel is used a lot for working on already prepared excel workbooks and to create new excel workbooks and so creating a separate excel workbook is probably not the most practical for the office. If you have any other thoughts, please do let me know. Thanks again.

  18. #18
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    the only quick fix would be to use personal.xls instead of personal.xlsb

  19. #19
    Registered User
    Join Date
    10-26-2012
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    Sounds like it, but unfortunately we need to use Excel 2010. Thank you for your help. Do I need to mark this thread as solved to close it off?

  20. #20
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    You can still use an .xls file in 2010

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  21. #21
    Registered User
    Join Date
    10-26-2012
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    Thanks. We need excel to function as Excel 2010 (i.e. saving workbooks as .xlsx) and anytime you load a new or existing excel workbook (whether .xls, .xlsx, or rarely .xlsm) it will load as you would normally see in Excel 2010. It seems here that you have to load the .xls file and then open new or existing workbooks from there.

  22. #22
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    I do not understand the problem. Personal.xls will behave the same as personal.xlsb (as far as macros are concerned at least) in 2010.

  23. #23
    Registered User
    Join Date
    10-26-2012
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    I think I must be missing something here. The macros are in PERSONAL.XLSB to apply to all excel workbooks. How do I create a PERSONAL.XLS file that applies to all workbooks?

    ** I figured it out. However, what happens when we move to the next release of Excel, is it possible that this may not work?
    Last edited by RBoffice; 11-30-2012 at 01:39 PM.

  24. #24
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    save personal.xlsb as a 97-2003 format workbook in the XLSTART folder then change its isaddin property and save again.

  25. #25
    Registered User
    Join Date
    10-26-2012
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: PERSONAL.XLSB error message when open multiple instances of Excel 2010 inside Caseware

    The Personal.xls solution works. Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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