Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Excel 2000 - Function call causes Locking up/Crashing

In my application (consisting Excel 2000 worksheets), I have many
user-defined functions/procedures. On one worksheet, a function MyFunction1
is called. Once in MyFunction1, depending on the parameters involved,
another function MyFunction2 may or may not be called.

When I run my application it works fine if MyFunction2 is not called from
MyFunction1 and the workbook is updated and saved automatically with a new
name. However, if parameters are such that MyFunction2 is called from
MyFunction1, the application still works, the new file name is created but
it just hangs there at the point of saving the file. At that point,
although I can navigate the various worksheets, I cannot edit anything on
any worksheets. If I try to save the file with File-Save, it crashes and I
get the Send Error Report/Don't Send ... dialog box.

All the calculations are correct.

I have tried putting a Stop at the point where file is saved with a new
name. When the execution is halted at Stop, if I try to save the file with
File-Save, it crashes and I get the Send Error Report/Don't Send ... dialog
box.

MyFunction2 has no direct connection to saving the file module.

It looks like something is causing an endless loop at the point of saving!?
If I recalculate with Ctrl+Alt+F9, I do not get this loop. I have stepped
through MyFunction2 and everything works fine and there is no endless loop
(or any loop).





--
Basharat.


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
Is it possible to call an excel function indirectly? Alban??? Excel Discussion (Misc queries) 4 February 27th 09 04:59 PM
CALL .NET FUNCTION FROM EXCEL VSTO Beginner Excel Worksheet Functions 0 February 27th 08 06:57 AM
Call Access 2000 macro in Excel Peter Excel Programming 0 May 18th 04 04:29 PM
How can I call Range::Find from C++ without crashing Excel? Aaron Queenan Excel Programming 3 February 12th 04 08:12 PM
How to call SolverSolve portably for Excel XP and Excel 2000 Chris Russell Excel Programming 3 September 10th 03 05:32 PM


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

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"