Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Excel File Opens then immediately closes

Posted on 2011-09-26
24
Medium Priority
?
534 Views
Last Modified: 2012-05-12
I have a user who I e-mail daily numbers to in Excel format.  I send him two files named:
MID - MIS - Service.xls
MID - MIS - Parts.xls

He USUALLY can open the Service.xls file, but when trying to open the Parts.xls file, the file opens, displays for a brief moment, then immediately closes.  I cannot understand this since they are generally copies of the same file with different numbers.  He is running Microsoft Office 2000 (9.0.3821 SR-1) on Microsoft Windows 2003 Server.  What are your thoughts?
0
Comment
Question by:mshaffner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 11
  • 10
  • 2
  • +1
24 Comments
 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 36600661
Try disabling macros (Tools/Macros/Security) in the menu before opening.  There may be code that is forcing the closure.
0
 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 36600669
Also, hit Alt+F11 to get to the VB Editor, and run this in the Immediate window:

Application.EnableEvents = False
0
 
LVL 26

Expert Comment

by:redmondb
ID: 36600794
Hi, mshaffner,

Any possibility that there is an Auto_Open macro in Parts.xls which is closing the file?

Regards,
Brian.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 26

Expert Comment

by:redmondb
ID: 36600809
Oops, crossing posts, please ignore my previous one.
0
 

Author Comment

by:mshaffner
ID: 36600815
The document contains no macros...
0
 

Author Comment

by:mshaffner
ID: 36600829
However it is Shared and Protected (as is the other file).... The file is created with MS Excel 2003 (11.8341.8341).  I would assume backwards compatibility.  But you know what they say about assumptions...  
0
 
LVL 26

Expert Comment

by:redmondb
ID: 36600955
mshaffner,

As a test, could you turn off Sharing and see if the user still has a problem? Again as a test, could you copy it (Shared and Protected) to the user's PC and see if that makes a difference?

Also, could you tell us some more about the spreadsheet - what size is it, is it just data (or does it include links, pivots, graphics, etc.)?

Thanks,
Brian.
0
 

Author Comment

by:mshaffner
ID: 36601004
I tried saving the file from the e-mail application to the user's desktop. I also tried renaming the file.  Still has the same problem.  The spreadsheet contains only data & formulas, no links, pivots, graphics, graphs, etc.  No external file referencing either.  The file size is about 498 KB (changes as daily numbers are added).  So it's not anything real fancy.  I'll post a blank copy of the document providing the above tests are not successful.
0
 
LVL 26

Expert Comment

by:redmondb
ID: 36601282
Thanks, mshaffner, that's great information. Just to check, did you get a chance to try an unshared version?

Oh, "immediately closes" - the spreadsheet or Excel?

Regards,
Brian.
0
 

Author Comment

by:mshaffner
ID: 36601374
Both... Sent the file & am waiting for a response from the user.
0
 
LVL 26

Accepted Solution

by:
redmondb earned 2000 total points
ID: 36601433
mshaffner,

If Excel is simply "disappearing" (i.e. shutting down without any message) it's very likely a corrupt spreadsheet. I'd build a new Parts.xls - ideally with nothing from the original, but copy and paste values if that's not possible.

Regards,
Brian.
0
 

Author Comment

by:mshaffner
ID: 36601440
If it is a corrupt spreadsheet, why would it work on all other computers?
0
 
LVL 26

Expert Comment

by:redmondb
ID: 36601534
mshaffner,

Yep, particularly when you've multiple versions of Excel in the mix.

Regards,
Brian.
0
 
LVL 21

Expert Comment

by:Hendrik Wiese
ID: 36601704
Ask the user to press and hold Ctrl and then double click the file to open it, as this would open office in save mode. Hopefully the file opens.

Hope this helps!!!
0
 

Author Comment

by:mshaffner
ID: 36962328
The user tried opening the file in Safe Mode.  No difference in behavior.  He is going to try an uninstall/re-install, but I don't think it will do any good since he can open other spreadsheets just fine.
0
 
LVL 26

Expert Comment

by:redmondb
ID: 36963706
Thanks, mshaffner. Did you get a chance to try a rebuilt Parts.xls? (And if that doesn't help, Services.xls.)
0
 

Author Comment

by:mshaffner
ID: 36963806
The "MID - MIS - Service.xls" file works fine.  I have not had the time yet to try and re-create the "MID - MIS - Parts.xls" file yet.  I'll let you know how it goes when I can get it done.  Meanwhile, any other suggestions would be appreciated!
0
 
LVL 26

Expert Comment

by:redmondb
ID: 36963963
He USUALLY can open the Service.xls file - what error was he getting with Service?
0
 

Author Comment

by:mshaffner
ID: 36964033
No error that I'm aware of.  I think that he said on occasion that file behaved the same way, opening then closing.  But he hasn't had that issue in awhile.
0
 
LVL 26

Expert Comment

by:redmondb
ID: 36964127
Do you constantly update the two files you send or are they recreated each time?
0
 

Author Comment

by:mshaffner
ID: 36964291
They are UPDATED each day.
0
 
LVL 26

Expert Comment

by:redmondb
ID: 36964439
Thanks, mshaffner. I'll wait patiently until someone else sorts it out or you get a chance to do the rebuild.
0
 

Author Closing Comment

by:mshaffner
ID: 37154547
It's impossible to know why the original file only gave one computer problems, but building a new file has caused the problem to cease.  Thanks!
0
 
LVL 26

Expert Comment

by:redmondb
ID: 37156997
Glad it worked, mshaffner. Thanks!
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question