run-time error 1004 exiting Excel 2007

M

Mark 1018

Every time I exit Excel 2007, I get this error: "Run-time error '1004':
Application-defined or object-defined error"

I have no idea what causes it. I do not use VB but have a few macros I made
using "Record Macro" feature.

It does not seem to cause any problems other than it's pain. How do I get
rid of this?
 
S

Shane Devenshire

Hi,

This is a relatively non-specific error message. It is generate in VBA.
When you get it try click Debug and see if you can find the problem. You can
show us the code that caused the problem and we should be able to help. You
can also go to the Visual Basic Editor manually by press Alt+F11, then open
any module folders and double-click the modules in them. Most likely the
code is in the thisWorkbook object which you will find listed in the Projects
window, top left side under your file.
Double-click it to open it. It sounds like there may be a
Workbook_BeforeClose macros.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top