|If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.|
||Thread Tools||Display Modes|
Making customized asynchronous function
I need to make an asynchronous function in vba for excel which makes
queries to an online database. Since the database query could be very
slow due to network lags, this function usually takes several seconds
to return the value.
However this function is intensively used in my excel workbook.
(intensive means it is inputed as formula in some 50,000 cells). Since
excel evaluates formulas one by one in a sequential fashion, it takes
impractically long time for the whole workbook to get updated.
I just wondered if I can make a function that work in asynchronous
fashion. The function will submit the query and return a string like
"Waiting for response..." indicating that response from the server is
still on the way. Without waiting for response, the function returned
When the response arrived, some event will be raised and the these
functions will take the event directly and update the cell value with
the data returned.
Does anyone know how to make such a function?
|Thread||Thread Starter||Forum||Replies||Last Post|
|Customized function||Elena||Excel Programming||1||August 31st 08 11:41 AM|
|Asynchronous call (macro)||Rodrigo Ferreira||Excel Discussion (Misc queries)||1||August 29th 07 07:41 PM|
|asynchronous Procedure Calls||Robert Mulroney[_3_]||Excel Programming||4||November 9th 05 02:16 AM|
|customized function||ravi||Excel Programming||2||July 21st 05 07:54 PM|