+ Reply to Thread
Results 1 to 5 of 5

personal.xlsb file causing close-down problem.

  1. #1
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    personal.xlsb file causing close-down problem.

    HI, I am starting to learn macros using a user guide I have. The small macros I am developing are stored in the personal.xlsb file. No problems.

    I am finding that when I close a workbook I have to close excel twice, the workbook closes OK, but the excel window stays open and I have to close it again.

    No problem, but is this being caused by the personal.xlsb file ??

    Thanks as always

    Trebor

  2. #2
    Forum Contributor
    Join Date
    02-26-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    173

    Re: personal.xlsb file causing close-down problem.

    I had a similar approach when I started VBA development. I never encountered this issue. That said, I stopped using the personal workbook because when you open 2 copies of Excel at the same time, it would complain that a copy of the personal workbook was read only.

    I solved that by getting rid of the personal.xlsb and making my code into an add-in, which was a simpler than I imagined. I took the code from my personal workbook and saved it as a .xlam file, then added a reference to my add-in. Detailed Instructions here: https://msdn.microsoft.com/en-us/lib...ffice.14).aspx and here https://support.office.com/en-us/art...ersion=Windows

    My biggest challenge at that point was registering hotkeys. My add-in functions no longer showed up in the macro menu. Here's the solve for that. This needs to be in a standard module in your add-in if you want to register hotkeys.
    Please Login or Register  to view this content.
    This will call the myMacroSub when someone presses CTRL+e.
    Last edited by smpita; 01-06-2018 at 02:51 PM. Reason: Clarifications

  3. #3
    Forum Contributor
    Join Date
    02-26-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    173

    Re: personal.xlsb file causing close-down problem.

    Looking at the official URLs that came up, I noticed the process is different from what I experienced. If the official instructions don't seem right to you, I added mine like this in Office 2010:

    File -> Options -> Add-ins ->
    Screen Shot 2018-01-06 at 10.56.07 AM.png

    Go (button) ->
    Screen Shot 2018-01-06 at 10.56.22 AM.png

    Browse -> (browse to file)

    It asks if you want to move it to Excel's "Add-in" location or just make a reference to the current location. Choose whatever works for you.
    Last edited by smpita; 01-06-2018 at 03:05 PM.

  4. #4
    Forum Contributor
    Join Date
    02-26-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    173

    Re: personal.xlsb file causing close-down problem.

    Just had an idea to test if it is your personal.xlsb is the problem. With Excel closed, browse to your personal.xlsb file in explorer. Move the file to your desktop and open Excel. If you still have the closing problem, it's not from the personal workbook. If the issue does go away, moving the code to an add-in will probably solve the issue.

  5. #5
    Forum Contributor
    Join Date
    06-29-2016
    Location
    Bristol, England
    MS-Off Ver
    2007
    Posts
    355

    Re: personal.xlsb file causing close-down problem.

    Thanks for the ideas. Ultimately I think the macros I create will be saved within the workbook itself, and I can delete personal.xlsb. In the shorter term I could rename the file, see if the problem goes away. I'll let you know.

    Trebor

+ 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. Replies: 1
    Last Post: 03-14-2016, 12:41 PM
  2. [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
  3. Close PERSONAL.xlsb if open
    By c00ly81 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2015, 09:46 AM
  4. Replies: 0
    Last Post: 01-15-2015, 05:53 AM
  5. Close Excel event to use with personal.xlsb file
    By richard.wilson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2014, 05:28 PM
  6. Automatically close hidden workbooks (Personal.xlsb)
    By JonSnow in forum Excel General
    Replies: 5
    Last Post: 01-29-2014, 09:24 AM
  7. [SOLVED] Working with WorkBook Close event and Personal.xlsb files
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2013, 12:40 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