Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Worksheet Crashing Excel

I know that this is going to be rather generic, but I have a macro enabled
file that I created in excel 2007 (saved in 2003 format) that works great,
but when I try to close the file, it ALWAYS asks if I want to save the
changes (even if I JUST saved) and then whether I choose to save or not, it
crashes excel.

I know that you don't know what my code is, but is anyone aware of this
happening, or a good place to start looking in my code to fix errors? I
would have no problem posting code if needed... I am frustrated and lost...

Thanks in advance for any help!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Worksheet Crashing Excel

Hi Shane,

Do you have a Workbook_BeforeClose event sub in ThisWorkbook module? If so,
try the following.

Place Exit Sub as the first line of code after the sub name and save the
workbook. (Effectively disables the sub).

Test closing the workbook. If this fixes the problem then post the code you
have in this sub.

--
Regards,

OssieMac


"Shane" wrote:

I know that this is going to be rather generic, but I have a macro enabled
file that I created in excel 2007 (saved in 2003 format) that works great,
but when I try to close the file, it ALWAYS asks if I want to save the
changes (even if I JUST saved) and then whether I choose to save or not, it
crashes excel.

I know that you don't know what my code is, but is anyone aware of this
happening, or a good place to start looking in my code to fix errors? I
would have no problem posting code if needed... I am frustrated and lost...

Thanks in advance for any help!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Worksheet Crashing Excel

I do not have a BeforeClose event.

Thanks you for trying though!

"OssieMac" wrote:

Hi Shane,

Do you have a Workbook_BeforeClose event sub in ThisWorkbook module? If so,
try the following.

Place Exit Sub as the first line of code after the sub name and save the
workbook. (Effectively disables the sub).

Test closing the workbook. If this fixes the problem then post the code you
have in this sub.

--
Regards,

OssieMac


"Shane" wrote:

I know that this is going to be rather generic, but I have a macro enabled
file that I created in excel 2007 (saved in 2003 format) that works great,
but when I try to close the file, it ALWAYS asks if I want to save the
changes (even if I JUST saved) and then whether I choose to save or not, it
crashes excel.

I know that you don't know what my code is, but is anyone aware of this
happening, or a good place to start looking in my code to fix errors? I
would have no problem posting code if needed... I am frustrated and lost...

Thanks in advance for any help!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Worksheet Crashing Excel

As I go and work with this sheet again, I notice that if I do not pull up the
userform, it closes ok.

Would keeping the userform hidden (I have it just hide when not using the
form, not unloading) make this happen?

"OssieMac" wrote:

Hi Shane,

Do you have a Workbook_BeforeClose event sub in ThisWorkbook module? If so,
try the following.

Place Exit Sub as the first line of code after the sub name and save the
workbook. (Effectively disables the sub).

Test closing the workbook. If this fixes the problem then post the code you
have in this sub.

--
Regards,

OssieMac


"Shane" wrote:

I know that this is going to be rather generic, but I have a macro enabled
file that I created in excel 2007 (saved in 2003 format) that works great,
but when I try to close the file, it ALWAYS asks if I want to save the
changes (even if I JUST saved) and then whether I choose to save or not, it
crashes excel.

I know that you don't know what my code is, but is anyone aware of this
happening, or a good place to start looking in my code to fix errors? I
would have no problem posting code if needed... I am frustrated and lost...

Thanks in advance for any help!

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Worksheet Crashing Excel

Hi Shane,

In that case I would try closing it in the Workbook_BeforeClose event and
see whant happens.

--
Regards,

OssieMac


"Shane" wrote:

As I go and work with this sheet again, I notice that if I do not pull up the
userform, it closes ok.

Would keeping the userform hidden (I have it just hide when not using the
form, not unloading) make this happen?

"OssieMac" wrote:

Hi Shane,

Do you have a Workbook_BeforeClose event sub in ThisWorkbook module? If so,
try the following.

Place Exit Sub as the first line of code after the sub name and save the
workbook. (Effectively disables the sub).

Test closing the workbook. If this fixes the problem then post the code you
have in this sub.

--
Regards,

OssieMac


"Shane" wrote:

I know that this is going to be rather generic, but I have a macro enabled
file that I created in excel 2007 (saved in 2003 format) that works great,
but when I try to close the file, it ALWAYS asks if I want to save the
changes (even if I JUST saved) and then whether I choose to save or not, it
crashes excel.

I know that you don't know what my code is, but is anyone aware of this
happening, or a good place to start looking in my code to fix errors? I
would have no problem posting code if needed... I am frustrated and lost...

Thanks in advance for any help!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel crashing... jodleren Excel Programming 2 July 3rd 09 03:19 PM
Help--Excel keeps crashing [email protected] Excel Discussion (Misc queries) 1 September 7th 05 10:22 PM
How to keep excel from crashing? Keith[_14_] Excel Programming 3 July 12th 04 04:05 PM
excel keeps crashing kickyr Excel Programming 4 December 4th 03 09:58 PM
Excel crashing when (programatically) adding past the 360th worksheet to a workbook Scott Lyon Excel Programming 2 August 14th 03 12:34 PM


All times are GMT +1. The time now is 09:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"