Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Providing status info during UDF calculations

i have a set of UDFs which often take a long time to calculate. they
go to SQL Server and upload and download requests and do a lot of
processing. Since they take a long time, i would like to provide the
user status information, such as how many requests have been downloaded
so far, etc.

i have tried to use application.statusbar, but it appears to be locked
during excel calculation. i have also tried to set the captions of my
own office.commandbarbutton, but they do not repaint themselves until
after calculation, even if i call doevents (which tends to destabilize
calculation anyway, which i would like to avoid).

the next thing i will try is to make a DLL with a blank VB6 form which
i'll use since it supports refresh or repaint methods.

however, since this seems like something that someone smart would have
done at one time, i would like to know if there is a nice, easy
solution that doesn't involve me having to distribute another DLL with
my addin. Thanks in advance.

I am using WinXP, XL 2002.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 105
Default Providing status info during UDF calculations

One nice canned solution is provided to us by Dave Pearson:

http://www.cpearson.com/excel/Progress.htm

Good luck...

Bill
-------------
R Avery wrote:
i have a set of UDFs which often take a long time to calculate. they
go to SQL Server and upload and download requests and do a lot of
processing. Since they take a long time, i would like to provide the
user status information, such as how many requests have been downloaded
so far, etc.

i have tried to use application.statusbar, but it appears to be locked
during excel calculation. i have also tried to set the captions of my
own office.commandbarbutton, but they do not repaint themselves until
after calculation, even if i call doevents (which tends to destabilize
calculation anyway, which i would like to avoid).

the next thing i will try is to make a DLL with a blank VB6 form which
i'll use since it supports refresh or repaint methods.

however, since this seems like something that someone smart would have
done at one time, i would like to know if there is a nice, easy
solution that doesn't involve me having to distribute another DLL with
my addin. Thanks in advance.

I am using WinXP, XL 2002.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Providing status info during UDF calculations

Chip Pearson.

Bill Martin wrote:

One nice canned solution is provided to us by Dave Pearson:

http://www.cpearson.com/excel/Progress.htm

Good luck...

Bill
-------------
R Avery wrote:
i have a set of UDFs which often take a long time to calculate. they
go to SQL Server and upload and download requests and do a lot of
processing. Since they take a long time, i would like to provide the
user status information, such as how many requests have been downloaded
so far, etc.

i have tried to use application.statusbar, but it appears to be locked
during excel calculation. i have also tried to set the captions of my
own office.commandbarbutton, but they do not repaint themselves until
after calculation, even if i call doevents (which tends to destabilize
calculation anyway, which i would like to avoid).

the next thing i will try is to make a DLL with a blank VB6 form which
i'll use since it supports refresh or repaint methods.

however, since this seems like something that someone smart would have
done at one time, i would like to know if there is a nice, easy
solution that doesn't involve me having to distribute another DLL with
my addin. Thanks in advance.

I am using WinXP, XL 2002.


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 105
Default Providing status info during UDF calculations

Oops! Temporary (?) brain fog. No insult intended to either Dave *or* Chip.

Bill
------------------------
Dave Peterson wrote:
Chip Pearson.

Bill Martin wrote:

One nice canned solution is provided to us by Dave Pearson:

http://www.cpearson.com/excel/Progress.htm

Good luck...

Bill
-------------
R Avery wrote:

i have a set of UDFs which often take a long time to calculate. they
go to SQL Server and upload and download requests and do a lot of
processing. Since they take a long time, i would like to provide the
user status information, such as how many requests have been downloaded
so far, etc.

i have tried to use application.statusbar, but it appears to be locked
during excel calculation. i have also tried to set the captions of my
own office.commandbarbutton, but they do not repaint themselves until
after calculation, even if i call doevents (which tends to destabilize
calculation anyway, which i would like to avoid).

the next thing i will try is to make a DLL with a blank VB6 form which
i'll use since it supports refresh or repaint methods.

however, since this seems like something that someone smart would have
done at one time, i would like to know if there is a nice, easy
solution that doesn't involve me having to distribute another DLL with
my addin. Thanks in advance.

I am using WinXP, XL 2002.



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
reuest formula for auto update status & status date PERANISH Excel Worksheet Functions 5 June 2nd 08 04:26 PM
Excel 2003 Status Bar Calculations WeyburnWaterOperators Excel Discussion (Misc queries) 3 August 19th 06 12:04 AM
Filter info in Status bar - Other workaround? uw805 Excel Discussion (Misc queries) 2 June 4th 06 04:41 AM
Providing Toolbars to Workgroup Sprinks Excel Discussion (Misc queries) 2 January 12th 05 01:51 PM
Providing Estimate to Complete Info on a Process [email protected] Excel Programming 0 September 1st 04 07:51 PM


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