+ Reply to Thread
Results 1 to 10 of 10

Book1 Won't Close

  1. #1
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro 2003 / 2010
    Posts
    423

    Book1 Won't Close

    Hi,

    I have a problem which I just can't work out. From searching the net it seems that book1 has somehow become linked to something else but I don't know what.

    If I open Excel 2010 book1 appears and if I double click the X top right of the screen to close Excel without doing anything I get this message -

    This workbook is currently referenced by another workbook and cannot be closed.

    Posts on internet suggest problems with an object in vba.

    If I on Devloper and Visual Basic this is what I see in the projects window from the top -

    atpvbaen.xls
    Eurotool.xlam
    The Personal.xls Workbook which has been there for months.
    The Personal.xls workbook has References
    Reference to atpvbaen.xlam
    Reference to funcres.xlam
    Reference to solver.xlam

    Then there is Solver.XLAM

    Follwed by VBAproject(Book1)
    Within it there is
    Sheet1
    Sheet2
    Sheet3
    This Workbook

    VBAProject (FUNCRES.XLAM)
    Microsoft Excel Objects
    Sheet1 (RES)
    This Workbook

    Modules
    RibbonX_Code

    Please Login or Register  to view this content.
    Under Tools References

    Visual basic For Applications
    Microsoft Excel 14.0 Object Library
    OLE Automation
    Microsoft Office 14.0 Object Library

    Are ticked.

    I have taken a screen shot and attached.

    Any help much appreciated.

    Excel will close but not properly.
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Book1 Won't Close

    Where is Book1 stored?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro 2003 / 2010
    Posts
    423

    Re: Book1 Won't Close

    Pass. It opens on its own every time Excel opens.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Book1 Won't Close

    Pass?

    Does it appear in View > Switch Windows?

  5. #5
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro 2003 / 2010
    Posts
    423

    Re: Book1 Won't Close

    Yes it does appear in View > Switch Windows.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Book1 Won't Close

    Is there the workbook Book.xltx in the XLSTART folder?
    Last edited by shg; 10-09-2012 at 06:59 PM.

  7. #7
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro 2003 / 2010
    Posts
    423

    Re: Book1 Won't Close

    No just the Personal workbook in the XLSTART folder.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Book1 Won't Close

    How about the other XLSTART folder?

    What happens if you uninstall all add-ins and delete or rename Personal?

  9. #9
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro 2003 / 2010
    Posts
    423

    Re: Book1 Won't Close

    Hi Shg,

    I have copied the personal.xls workbook to a memory stick and deleted the personal.xls workbook from the Roaming\Microsoft Office\Excel\Xlstart folder and now that has cured the problem.

    There is nothing in the other xlstart folder in the Office 14 folder.

    How do I get my file full of macros back into the pc?

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Book1 Won't Close

    Just to ask the obvious: You don't have any code in Personal that opens another workbook, do you?

    Copy Personal back to the XLSTART folder and try again.

+ 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