Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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
very fast.

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?

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
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 03:16 AM
customized function ravi Excel Programming 2 July 21st 05 07:54 PM


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