Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Excel 2007 hangs on programmed file close

I am working in Excel 2007 with SP1. I have a workbook with VBA that works
fine except that the Module that closes the workbook, using
ActiveWorkbook.Close, hangs Excel when run. If I step through the code it
closes normally and Excel doesn't hang.

The same workbook running in 2003 works fine.

What causes this and how do I stop it?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Excel 2007 hangs on programmed file close

Can you post the code you are using and then it can be assessed/tested?

--
Regards,

OssieMac


"Richard MG" wrote:

I am working in Excel 2007 with SP1. I have a workbook with VBA that works
fine except that the Module that closes the workbook, using
ActiveWorkbook.Close, hangs Excel when run. If I step through the code it
closes normally and Excel doesn't hang.

The same workbook running in 2003 works fine.

What causes this and how do I stop it?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Excel 2007 hangs on programmed file close

I think that this is your problem

See the last section on this page
http://www.rondebruin.nl/shape.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Richard MG" wrote in message ...
I am working in Excel 2007 with SP1. I have a workbook with VBA that works
fine except that the Module that closes the workbook, using
ActiveWorkbook.Close, hangs Excel when run. If I step through the code it
closes normally and Excel doesn't hang.

The same workbook running in 2003 works fine.

What causes this and how do I stop it?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Excel 2007 hangs on programmed file close

Thanks, Ron. Perfect! It worked just fine.

"Ron de Bruin" wrote:

I think that this is your problem

See the last section on this page
http://www.rondebruin.nl/shape.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Richard MG" wrote in message ...
I am working in Excel 2007 with SP1. I have a workbook with VBA that works
fine except that the Module that closes the workbook, using
ActiveWorkbook.Close, hangs Excel when run. If I step through the code it
closes normally and Excel doesn't hang.

The same workbook running in 2003 works fine.

What causes this and how do I stop it?


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 2007 hangs while loading chart Gerry Verschuuren Charts and Charting in Excel 0 July 17th 09 08:05 PM
Open, Save and close Excel 2007 file with a cmd command Hugo Pinto Excel Discussion (Misc queries) 5 March 3rd 08 10:05 PM
Excel 2007: How do I disable the 'Do you wish to save changes to...' when I close an un changed file? anctech Excel Discussion (Misc queries) 4 June 15th 07 10:42 AM
Excel 2007 Hangs until Minimized CTSMark Excel Discussion (Misc queries) 0 November 24th 06 05:43 PM
Excel hangs on close when using Web services in add-in Mike Cooper[_2_] Excel Programming 3 November 2nd 03 09:55 PM


All times are GMT +1. The time now is 09:12 PM.

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

About Us

"It's about Microsoft Excel"