Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Insert function

I have written a custom Excel function in VBA which retrieves data from a
remote server. This function can take up to several seconds to run, depending
on a variety of factors. I have encountered some problematic behavior in the
process of inserting the function in cells at the point where the function
arguments are entered. Due to the slow response of the function, I can
observe that after the last argument is entered, the function runs once to
fill the results field in the lower-right corner of the Function Arguments
dialog box, then a second time to fill the formula result field in the
lower-left corner. Clicking OK after both fields have calculated closes the
dialog normally and the function appears to run a third time to place the
result in the target cell. The problem arises when OK is clicked before both
fields have finished calculating. In this case, Excel appears to start
queuing calls to the function in a loop until eventually it freezes or
aborts. I have been able to duplicate the behavior by creating a test
function which employs a timer to imitate the response time, so I know that
the issue is with the Insert Function process and not my function.
--
Christina L.
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
Insert function Mike Murray Excel Worksheet Functions 0 September 25th 06 01:31 PM
how to insert function? tmela Excel Discussion (Misc queries) 4 August 22nd 06 01:16 AM
where/how to insert a function Khoshravan Excel Discussion (Misc queries) 6 July 29th 06 12:46 AM
Insert function - custom function name preceded by module name [email protected] Excel Programming 1 April 2nd 06 03:46 PM
How do I insert a row when using an if function BP Excel Worksheet Functions 1 December 27th 04 05:15 PM


All times are GMT +1. The time now is 11:52 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"