Opening Excel Files From Windows Explorer

As I’m sure you know, you can double click on an Excel file in Windows Explorer to open it in Excel. Sometimes this causes a problem, however. Typically, the problem encountered is that the file doesn’t open, but Excel opens with a blank area where the workbook should be. If you encounter this problem, the first two things you should do are:

1. Tools>Options>General and uncheck Ignore Other Applicaitons.

2. Close Excel and from Windows use Start>Run. Type in

C:\MyPath\Excel.exe /unregserver

then do the same thing, but type

C:\MyPath\Excel.exe /regserver

Replace MyPath with the actual path to Excel.exe. Neither of these commands will start Excel, but they will rewrite the registry items associated with Excel. I’ve never had to type the path, I’ve just used

Excel.exe /regserver

but better safe than sorry. And thanks to Dave Peterson for the /unregserver tip. Sometimes just using /regserver will fix the problem, but there have been occasions when the /unregserver step was needed.

86 Comments

  1. Sridhar:

    I had problem with the excel file , when opening from windows 2000 explorer. This solution really helped me
    Thanks Dick Kusleika

  2. Dick:

    You’re welcome, Sridhar.

  3. Marc Vallribera Ros:

    Thanks! I was going crazy with this problem and this solution fixed it! Thanks a lot!

  4. Haris:

    I tried this option, but still I receive a message “Cannot find the file “abc.xls” (or one of its components). Make sure the path and filename are correct and that all required libraries are available.

  5. adnan:

    Excel.xls file is on the server but its giving bank screen ???? can any one tell me..

    there is no error

  6. john:

    very nice….fixed an issue i was having. thanks for providing the regserver command.

  7. KSF:

    Thanks so much, this was driving me crazy… whenever I opened a file from windows explorer in excel it would rename the file and forget where it came from. This fixed it! Thanks!!!!

  8. siva:

    “Cannot find the file “file.xls” (or one of its components). Make sure the path and filename are correct and that all required libraries are available

  9. Dick Freeman:

    Thank you very much.

    This problem came up for me recently and was quite inefficient and annoying when you handle excel files all day.

    The solution suggested here fixed it. It took me a few minutes to get the path configured correctly.

    I believe there needs to be a space between the colon and the beginning of the path description. For example on my computer it was-

    C: Program Files\Microsoft Office\Office10\EXCEL.EXE/unregserver.

  10. Dick:

    Dick - It’s actually a forward slash, but for some reason my blogging software can’t escape a forward slash. It should be c:\Program Files… (we’ll see if that forward slash shows up)

  11. natalie cooper:

    That has been a constant source of irritation for some time now and life is too short! Thank you so much.

  12. Rajesh R. Maurya:

    Thanks…:)
    It worked well…

    Rajesh

  13. Jayakumar:

    It was good r&d

    I would like to have more info about the troubleshooting windows os and application s/w

    Thanks

  14. jkpieterse:

    For a bit more about troubleshooting Excel, see:

    http://www.jkp-ads.com/Articles/StartupProblems.htm

  15. Koshy Chacko:

    Thank you. It was a irritating problem. It disappeared after I did uncheck.

  16. John Ott:

    Thanks, was waiting for my IT person to fix this. Just found your info and it works… Highly recommend

  17. dave:

    That is some good info!!!

  18. Pedro:

    Mine finally worked with just Run=>

    “excel /unregserver” and then “excel /regserver”

    with a space between excel and the slash

    Thanks my smile is back above horizontal now

  19. Scotty:

    Thanks and step 1 fixed this annoying problem.

    Do you know hwta causes it? Thanks again.

    1. Tools>Options>General and uncheck Ignore Other Applicaitons.

  20. Kristian:

    Nice! Worked for me too. I was looking for a fix to this for a co-worker.

  21. Juan lopez:

    thanks for you helps … quick and simple yet straight to the point..

    thanks

  22. Patrick Stacey:

    This was an absolutely fantastic fix for me. I have tried the unregistering and registering of excel before and it didn’t work - the “ignore other applications” combined finally did it. I had been searching for solution for ages. Many thanks.

  23. Gary Gilbert:

    Thank you very much! Your fix worked. Its a shame microsoft does not have answers for these type problems.

  24. Mike Osborn:

    Great tip… finally I’ve gotten this working.
    Had to plead with centralised IT support for an admin passport just to be able to place run on my start bar.
    Now they’ve given me one - I’ve run riot and fixed numerous bugs.
    Thanks for the help - very much appreciated!!!

  25. pradeep:

    hi,

    when i am trying to open excel file on dubble click.
    it taking so much time to open. but when i open same file from file menu—->open it open quickly.

    i reinstalled ms office but i still facing same problem.

    pls help me out of this problem

    thanks

    pradeep

  26. Anna:

    I wish I found this before I went through the pain of uninstalling and reinstalling Office 2003. The “unregserver” tip worked famously. I’d be curious to know why and how this happens “all of a sudden.”

    Thank you so much!!

  27. Bob:

    I have tried the /unregserver and /regserver but it still did not fix the problem. I have also examined the XLS file type which appears correct.
    If I add the {pathname}excel.exe in front of the xls file from a short cut it opens with out an error.

  28. Rob:

    Thanks!
    Worked perfect!

  29. Wells Fargo Tech:

    Your fix worked GREAT. It saved me from rebuilding a profile. THANKS!!!!!

  30. R B:

    Works great!

    Unreg and regged the first time with no success.. Did Microsoft Office update to no avail.

    Tried this in Options, and worked right away.

    Using Office 2003

  31. mswlogo:

    This is somewhat related to th eproblem for some people and may explain a bit more.

    I think I have figured out this stupid Excel thing.

    Excel has this bast%^%^ized MDI SDI thing.

    I think most people run Excel with it’s child Window Maximized (which makes it really confusing).

    So when you click on another file it switches to that file, hides the other window but adds another icon on your task bar giving you the feeling you started another instance of excel (but it didn’t !!). I’ve been burned by this too many times and shutdown what I thought was one instance of excel turned out to be all of them. Word does not behave this way.

    So there is an option to disable this feature called “Ignore Other Applications” (under Options-> General). If you look at the help on this it basically shuts of DDE. What DDE basically does is when you click on a file it checks to see if Excel is already running and if it is, it passes the file to that already running instance. The problem with turning this switch on is the file mappings that are already installed assume DDE is on and things break. So when you shut that option off you suddenly start getting errors that Excel cannot find the file.

    To fix this go into your File Explorer (My Computer) and Choose Folder -> Options -> File Type. Find XLS and select it, then click advanced button. Now Select the “Open” Action and choose Edit button. Now this is the trick, shutoff DDE by unchecking it. Then edit the end of the action. The end should be something like this (note the “%1″) and note there must be a space between the /e and the first quote.

    “C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE” /e “%1″

    Now this allows you to create a SEPERATE instance of excel everytime you click on an Excel file. And when you close that excel instance it has no impact on any other. It also gets rid of the I can’t find the file problem. In some cases you will see a %1 without the quotes. That causes the problem that excel can’t find files when the path has spaces in it.

    You may want to repeat this for other files types that maps to Excel. Like .CSV

    If you have “ignore other applications” switch unchecked (default behavior) you get the funky SDI/MDI/Excel Instance behavior.

    If you have “ignore other applications” switch checked, you get the more logical MDI/SDI/Excel Instance behavior but the file type mappings must be fixed as I described above.

    This all assumes under WinXP.

  32. Jon Peltier:

    Why would you want a separate instance of Excel for each workbook you open? Is it just confusion over the View Windows in Taskbar setting? You’re better off unchecking View Windows in Taskbar, so you only see the instance of Excel, and not each workbook window. For the rare case in which you need another instance of Excel, simply start Excel from the Start menu.

    IMO, the MDI/SDI/Whatever behavior in Excel is much better than that of Word. When 2000 came out, you couldn’t change the Windows in Taskbar behavior of Word, and that made me nuts. Also, Word forces one set of menus atop each document window, not on the application window, so when you arrange windows, you get two or more blocks of UI taking up vital visual work space.

  33. RST:

    MSWlogo-

    THANK-YOU VERY MUCH FOR YOUR TIP!!! I have been fighting with this stupid Excel to open a separate window each time I double-click on an .XLS file. To Jon Peltier above, I spend all day opening and closing Excel files and want to close one file but leave the other open, only to find I have closed them all because they appear in one window- and by the way lose the work I spent typing and pasting in data from the other files. You would think Microsoft would put an accessible switch in the options area to flip between SDI and MDI to accomodate everyone.

    RST

  34. Tommy:

    Hey, thanks a lot.

    Result!

    Tommy

  35. Michael R:

    Works for me. Great stuff. Thanks for making this knowledge available - been trying to fix the “Excel starts up empty” problem for months.

  36. Devashish:

    Hi Mr. Dick Kusleika,

    Thank you for providing this solution as this really helped me and resolved the issue which I was facing since the last 2days.

    Thank you once again!

    Have a great time!

    Cheers,
    Dev.

  37. Bashaman:

    Very nice. Thanks a lot. I’ll remember this page!

  38. Dan:

    It worked!!! Thanks so much. This issue was annoying for so long. Key things to note–you need a space between the colon when you type C: \”mypath”\excel.exe/unregserver, where “mypath” is the exact location of your excel program (for me it was “\Program Files\Microsoft Office\Office\excel.exe”)

    Thanks again!

  39. Adrian Amato:

    Great solution for muliple instances! Thanks.

  40. Ravi S:

    your suggestion helped me in opening the excel file. good, keep it up. thanks Ravi

  41. Jacques Thollembeck:

    I dishoped to find back this such more convenient setting. For info, I used to enjoy this feature with Excel 2000 in former times, until it suddenly went away. When installing Office 2003 a few weeks ago, I had the pleasure to see it again, until it faded away, again without any explanation.
    Thanks a lot for this great tip to run multiple Excel instances !

  42. Katy:

    Great tip, I used it for word too!
    Katy

  43. Kevin:

    Works on Excel 2007 (Beta 2) as well (Ignore other applications is now listed in the advnaced section)

  44. Felix:

    Thanks , it works !

  45. KP:

    it worked for me too guys try it out !!

    thansk a lot

  46. Kenneth Hayes:

    I have looked all over the web, and nothing else worked. So I just gave this a shot, and it worked. Thank you very much.

  47. john steensen:

    Thank you - this fixed the problem. The /unregserver piece was the part I was missing.

  48. Lemon:

    Hi everybody,
    Regards this issue, I had found out a strange phenomenon. Let say I have a pre-opened Excel E1 by using Microsoft Excel 2003 (blank document is also OK). And I open another Excel file E2 but using Internet Explorer 6.0 in this way:
    1. Page “parent.htm”:

    2. Page “child.htm”:

    function test_onclick() {
    window.open(”test.xls”,”_self”);
    }

    No matter what “test.xls” is. (It can be an empty Excel file).
    Now when I open the “parent.htm” and clik on the non-Excel frame, the Excel file E1 WILL BE LOCKED (you can’t do anything except closing it).
    Do you have any idea on this?
    Thanks,
    Chanh.

  49. Alan:

    The comment 31 from mswlogo is really good. Sometimes you have two monitors and you want to compare two EXCEL files. Then you will know how helpful this tip is. Thanks a lot!

  50. plaqueta:

    Thank you - this fixed the problem. The /unregserver piece was the part I was missing.
    Thank you
    Thank you
    Thank you

  51. jaf:

    mswlogo

    THANK YOU very much for the solution to the multiple instances problem.
    Very well introduced and explained.

  52. Lars:

    I cant uncheck the Use DDE box. That is, I uncheck it, click Ok, Ok, and Excel still opens in the same instance, I go back to the folder action settings, and it is back to having DDE checked!!!

  53. DAVE J:

    Great solution was stumped at this for a while.

    Cheers

  54. JB:

    Ahhhh..

    whew.. yet another constitution saved from terminal insanity.

    Y’next brew’s on me.

    Cheers..

  55. Rich:

    Thank you for your post mswlogo! You helped me solve this problem for someone.

  56. brainsoft:

    Thank-you so much! The Excel MDI experience has bothered me for years. The Excel UI is just not designed to properly accommodate a true MDI interface. Wait until you get a load of Excel2007, it’s even more akward than ever!

    Now I can finally double click on two files directly and compare them side by side on my DUAL MONITORS, something that was always a pain to do before. (open one, go to start menu, find it there, open it, wait, file, open…. finally!)

    Now, is there any way to get ride of the “Microsoft Excel” in the task bar buttons? I know what program it is, I can see the icon!

  57. J-Walk:

    To get rid of the “Microsoft Excel” in the title bar (and show only the workbook name) execute this VBA statement:

    application.Caption = ” ”

    That’s a space between the quotes. Using empty quotes resets it to normal.

  58. Jan:

    Re:Point 31
    I like the way Excel works already. I stack up Excel applications when I need them and separate them so that if I want to link excel files or just Ctrl+F6 between them I keep them together and if I think one file is big slow and unstable and is at risk of crashing I open it up in an independant application so that I can kill separate “Excel’s” without trashing my other work.

    I would hate for Excel to start to behave like Word.

  59. Jon Peltier:

    JK -

    “I like the way Excel works already.” … “I would hate for Excel to start to behave like Word.”

    Me too.

  60. Alex Koulintchenko:

    Thank you so much for your hint! I was going crazy with this error!

  61. Joe Chong:

    Thank you so much. I have been looking for a way to open new instances of Excel every time I double click the files for a long time. I am not sure what the advantages of MDI in Excel are such that Microsoft made this the default behavior.

    I have dual monitors and need to look at two spreadsheets on separate monitors. MDI just can’t manage this very well (esp when monitors are of different sizes).

  62. Roger Mikesell:

    Appreciate the info! I was fine until inducing the problem by turning on the “ignore other applications” trying to help someone else. Turned it off again but the problem with split file names remained.

  63. Jimmy Griffith:

    I have a different problem opening with Windows Explorer. When opening a file from Windows Explorer when I have Excel already open with a file active, the active file is deleted and the new file loaded up. Excel doesn’t give any warning nor does it ask if you wish to save the file. I have replicated this on both my desktop (Windows XP Media) and laptop (Windows XP Home) using the same software–Office 2003. Have you heard of this problem? Any solutions?

    Thanks,

    Jimmy Griffith

  64. James Lewis:

    Thanks for your help Dick Kusleika. The solution you suggested worked. Your instructions were very clear too. Thanks. James

  65. chandru:

    Thanks a lot, this option is working fine for me.

  66. Wilson:

    Thanks alot of this handy tip. It helped me solve a problem ive been having for a few days..

  67. Andreas:

    Thanks a lot! It was very helpful this advise!

  68. forest:

    Holly Molly - I can take my foil hat off, thought they (gov space people) finally had me that time.

  69. André:

    Thanks a lot. I can start excel files again via double click. However, it occured already after unchecking the Ignore other applications. Then comes the strange part…
    When I now try to run C:\Program Files\Microsoft Office\Office\EXCEL.EXE /unregsever, I get the error Cannot find the file ‘C:\Program’ (or one of its components). It seems the RUN command does not recognize the space in “Program Files”… Any idea how to solve this problem? With excel I don’t have problems with dirs or files having blanks.

  70. Miguel:

    Thanks for the advise. It really helped me.

  71. Matthew:

    Thanks a ton for this! My new work laptop was choking on opening XLS, and this totally fixed it!

  72. jkpieterse:

    Jimmy: If you look in the Window menu, isn’t your previous file still there?
    Could there be an addin or a macro somewhere else that causes havoc?

    Andre: You need to put the entire string in quotes except the startup parameters:

    “c:\program files\..\..\Excel.exe” /unregserver

  73. MacGuyver:

    In regards to the Application.Caption = ” ” to shorten the names in the task bar, I get Invalid outside procedure. Is this due to missing admin rights?

  74. Es:

    Although the registry method worked for me the results were temporary. Scotty’s advice led me to figure out where the problem was. I tried it and found it worked, but again only good for one more opening of my Excel file and suspiciously, the execution of a macro. I decided to turn the Excel macro recording on and took a look at what was recorded with Scotty’s method. It was Application.IgnoreRemoteRequests = False. Sure enough, I had a macro running that turned them true but did not turn them false so I just pasted the recorded macro on the end and problem solved. Not sure exactly why it worked but it probably has to do with what IgnoreRemoteRequests means. I used it to suppress the clipboard prompt that you often get in Office products but admittedly it was a bit of a hack-job. Just glad that I can now roll on. Great to have the help.

  75. mikeb:

    I have similar issue with Excel 2007 opening Excel 2003 files. any path with a space Excel 2007 doesn’t like. I have some workstations that work fine. I have narrowed it down to a %1 on the end of the application path. The workstations the work correctly don’t have the %1. I find this under folder options, file types, xls, open, edit, application path. I have tried everything and can’t remove the %1. I delete it, try to open a xls document and it still fails. I go back an look and the %1 is there. I tried /unregserver and /regserver and still no fix. How do I permanently remove the %1?

  76. mikeb:

    One thing we found to “fix” this issue is to go into File Types, XLS, Advanced and make “New” the default instead of “Open”

  77. Earlf:

    Excel opens empty.
    I couldn’t get rid of %1 either. I ran an Office 2007 repair and that fixed that but I cannot get /unregserver /regserver to work. I go to Run and type the path: C:\Program Files\Microsoft Office\Office12\EXCEL.EXE /unregserver but it says that it cannot find ‘C:\Program’ I put the whole path in Quotes, followed by the switch, and it just opens EXCEL. I follow up with the /regserver switch, after the quotes, and it opens EXCEL again but still opens empty until I click open-cancel or minimize, then it brings up the doc. Ignoring other applications doesn’t help either. What are you folks doing differently? thanks!

  78. Earlf:

    sorry. I read half way the messages then skipped to the “end of the book” and typed my comments to a post then I learned afterwards that others were having the same syntax issues. Sorry for the double post. Neverhteless, the problem remains. Thanks for any helpful comments that may be directed my way.

  79. Alex:

    well, “1%” works, but creates several instances of the program with many other problems. If /regserver do not work try http://support.microsoft.com/kb/918165 “Problems in Windows Explorer or the Windows shell after you install security update MS06-015″.
    Only reapplying the update help me finally get rid of the delays

  80. Steve Watson:

    Thanks this fixed a truly irratating problem with word too. Thanks again.

    Steve

  81. Alex:

    If you have Nokia telephone and the problem started after October 2007, than the most probable reason is Nokia PC Suite version 6.85.14.1 or 6.85.12.0 installed. At least I finally resolved the issue with long time opening files on Dell 620 with Toshiba BT, Win XP Prof SP2 by downgrading PC Suite to version 6.84.10.3.

    Full thread is there -> http://discussions.europe.nokia.com/discussions/board/message?board.id=pcsuite&thread.id=22808

  82. soulfrost:

    mswlogo,

    Your solution worked like a charm!!! Thanks dude!

  83. Deb:

    Cheers mate!

  84. Pritam:

    HI
    I had this problem and I tried to uninstall and re install my office several times, but the problem still remained.
    Your method solved it in seconds
    Thanks

  85. Ross:

    I had a problem with opening excel files which had a space in the path, not file name. The settings were all correct in folder settings, but only was fixed by the regserver.

    Thanks!!

  86. Sudhir Krishnan:

    Thanks for this solution. I was facing too much problems as my files are interlinked and was not able to work on them.
    Thanks once again
    Sudhir

Leave a comment