Closed Thread
Results 1 to 13 of 13

"Sorry, Excel can't open two workbooks with the same name at the same time."

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    California
    MS-Off Ver
    Excel 2016
    Posts
    22

    "Sorry, Excel can't open two workbooks with the same name at the same time."

    Hello and happy Friday!

    I get this message every time I open excel:
    "Sorry, Excel can't open two workbooks with the same name at the same time."

    This happens every single time I open a file in excel or even when I just run excel to open a blank sheet and haven't even opened a named file.

    I've tried using the Microsoft Office 365 online repair tool and I still have this issue.

    As a result... Every single file I open is opening in a separate instance of Excel so I cannot use formulas between them... Extremely frustrating.

    I haven't had any luck searching the forum or Google because all I see there are suggestions to rename the file... This won't help me because this happens no matter what.

    I am using office 365 2016 version on Windows 10 64-bit.

    If anyone has any way to fix this I'd be very grateful.

    Thank you in advance for your time and your replies.

    Have an amazing weekend everyone Cheers!

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: "Sorry, Excel can't open two workbooks with the same name at the same time."

    What do you have set up on auto open? It sounds like you have an the system set to auto open on a certain file or files, and one of those files has an workbook_open or worksheet_activate macro that could be calling the same workbook. Just a guess. Not sure how to fix it without seeing the actual events.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Registered User
    Join Date
    08-21-2012
    Location
    California
    MS-Off Ver
    Excel 2016
    Posts
    22

    Re: "Sorry, Excel can't open two workbooks with the same name at the same time."

    Thank you very much for the reply! I unfortunately am not familiar with the auto open function. I haven't set up anything myself. Where would I look for this?

    Thank you again in advance for your time!!!!!

    Have a nice weekend

  4. #4
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: "Sorry, Excel can't open two workbooks with the same name at the same time."

    do you have anything in this folder ?

    %appdata%\microsoft\excel\xlstart

    If so do they have any macros?
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  5. #5
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: "Sorry, Excel can't open two workbooks with the same name at the same time."

    Quote Originally Posted by snolem75 View Post
    Thank you very much for the reply! I unfortunately am not familiar with the auto open function. I haven't set up anything myself. Where would I look for this?

    Thank you again in advance for your time!!!!!

    Have a nice weekend
    You are probably going to need someone locally who has some experience with Excel and file maitenance to help you look for the cause of the issue.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: "Sorry, Excel can't open two workbooks with the same name at the same time."

    Quote Originally Posted by scottiex View Post
    do you have anything in this folder ?

    %appdata%\microsoft\excel\xlstart

    If so do they have any macros?
    This is where I would look. It doesn't even have to involve macros. If you have two files like this

    PERSONAL.xlsb
    PERSONAL.xls

    then it will try to open both when you start Excel and complain about the name.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  7. #7
    Registered User
    Join Date
    08-21-2012
    Location
    California
    MS-Off Ver
    Excel 2016
    Posts
    22

    Re: "Sorry, Excel can't open two workbooks with the same name at the same time."

    2018-06-28 14_01_07-XLSTART.png

    That is what I have in that folder.... It is an add-on that allows me to hold me to scroll left and right with the mouse wheel (instead of up and down) when I am holding control.

    Getting rid of that seemed to solve it though. Although I'd prefer to be able to use it, hahaha!

    Thank you very much for your time!!!!!!

  8. #8
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: "Sorry, Excel can't open two workbooks with the same name at the same time."

    As others have mentioned, this is one of those rare times that Excel actually gives a meaningful error message. It comes when you literally try and open a file with the same exact name, I think extension included. For example I think workbook.xlsx and workbook.xls can be opened at the same time but not workbook.xlsx and workbook.xlsx.

    Without seeing the code of the addin its hard to say how to correct the issue besides disabling it. If its attempting to open something thats already open (like personal.xlsb) or is creating a chain of opening files that results in trying to open a file more than once thats the problem.

    I havent seen anyone else state it yet, but there are actually numerous xlstart folders. To find them go to File | Options | Trust Center | Trust Center Settings | Trusted Locations. This should list paths to at least 2x xlstart folders, a Startup folder, 1 or more template folders as well. Anything in those paths is likely being opened when Excel opens. Go to each path and check. Be aware that any locations that dont have wording like startup, xlstart and templates isnt likely opening files at startup. There could be locations in this list added by you or IT for things like network locations which is fine.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  9. #9
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: "Sorry, Excel can't open two workbooks with the same name at the same time."

    Quote Originally Posted by snolem75 View Post
    Getting rid of that seemed to solve it though. Although I'd prefer to be able to use it, hahaha!
    Do you have that add-in checked in the Add-in manager? If so, Excel would try to open two copies of it, and that would cause the problem. If you put the add-in into the addins folder, you should be able to avoid the issue.

  10. #10
    Registered User
    Join Date
    04-21-2022
    Location
    Stratford, CT
    MS-Off Ver
    Office 365
    Posts
    1

    Re: "Sorry, Excel can't open two workbooks with the same name at the same time."

    Hello I have a file doing this and it does have a macro.. The error comes when you try to run the macro. The macro's job is to just save the file as PDF and add data from 2 fields to the filename. It started doing this when I moved the file to another folder.

    Please Login or Register  to view this content.
    Last edited by NinjaUnmatched; 04-21-2022 at 12:28 PM.

  11. #11
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: "Sorry, Excel can't open two workbooks with the same name at the same time."

    Quote Originally Posted by NinjaUnmatched View Post
    Hello I have a file doing this
    Welcome to the Forum NinjaUnmatched!

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

  12. #12
    Forum Contributor
    Join Date
    08-05-2009
    Location
    Colorado Springs, CO
    MS-Off Ver
    Office 365
    Posts
    160

    Re: "Sorry, Excel can't open two workbooks with the same name at the same time."

    I am having this problem. I have several PC's and have installed MS Office 365 on all of them. When I do a new install of Windows and Office, I copy my Personal.xlsb file which has all my macros to this folder: "C:\Users\Tom\AppData\Roaming\Microsoft\Excel\XLSTART". I also import my QAT customizations. Other time I've done this everything works normally, but this time when I try to run a macro I get a prompt about Microsoft Office has identified a potential security concern. If I click on enable, then I get the "Sorry, Excel cannot open two workbooks...". I tried uninstalling and reinstalling Office 365, but no luck. I only have a single Personal.xlsb file on this computer. It has dual bootable hard drives. One Win 11 and one Win 10. The Win11 one works ok, but the Win 10 one does not. I have identified this problem on a different Win 11 computer where I do not use Excel very often.

    Thanks for any guidance.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: "Sorry, Excel can't open two workbooks with the same name at the same time."

    Administrative Note:

    We are happy to help, however whilst you feel your request is similar or even the same to this thread, we prefer you to open your own thread on the issue.

    Please see Forum Rule #1 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Unable to "Open" an exported excel (97-2003) during run time in Macros (Excel - 2010)
    By vmanoharan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-19-2018, 05:53 AM
  2. Replies: 2
    Last Post: 01-03-2013, 04:32 PM
  3. Workbooks("").Close Crashes Excel With Mutiple Workbooks Open
    By exs120 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-27-2011, 03:24 PM
  4. Excel 2007 unable to "see" other open workbooks
    By ssu95bm in forum Excel General
    Replies: 9
    Last Post: 09-23-2011, 09:19 AM
  5. Replies: 0
    Last Post: 01-04-2006, 06:55 PM
  6. use variable in Workbooks("book1").Worksheets("sheet1").Range("a1"
    By Luc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2005, 04:05 PM
  7. Replies: 1
    Last Post: 01-27-2005, 11:06 PM

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