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


I have a command button which calls macros in other worksheets. The
screen does not update until the macros are finished. These macros take
some time to run, after which I switch to a final worksheet showing the
results:

Private Sub CommandButton2_Click()
Application.ScreenUpdating = False
Call macro1
Call macro2
Application.ScreenUpdating = True

Worksheets("Results").Activate
End Sub

I wish to make the command button 2 flash while the calculations in the
2 macros are running.

Can anyone please assist with this?


--
JoeS01
------------------------------------------------------------------------
JoeS01's Profile: http://www.excelforum.com/member.php...fo&userid=9816
View this thread: http://www.excelforum.com/showthread...hreadid=382707

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 747
Default Flashing command button

I suggest forgetting the flashing command button. This would take some fancy
API code and would probably look goofy anyhow. I suggest a progress bar
instead. Rob van Gelder has a couple listed at his site. I have my own
version. His are likely more appropriate for your purposes.

http://homepages.paradise.net.nz/~robree/excel/

Regards,
Greg




"JoeS01" wrote:


I have a command button which calls macros in other worksheets. The
screen does not update until the macros are finished. These macros take
some time to run, after which I switch to a final worksheet showing the
results:

Private Sub CommandButton2_Click()
Application.ScreenUpdating = False
Call macro1
Call macro2
Application.ScreenUpdating = True

Worksheets("Results").Activate
End Sub

I wish to make the command button 2 flash while the calculations in the
2 macros are running.

Can anyone please assist with this?


--
JoeS01
------------------------------------------------------------------------
JoeS01's Profile: http://www.excelforum.com/member.php...fo&userid=9816
View this thread: http://www.excelforum.com/showthread...hreadid=382707


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
command button add another command Wanna Learn Excel Discussion (Misc queries) 5 December 7th 08 11:42 PM
Command Button EngelseBoer Excel Discussion (Misc queries) 7 August 12th 08 10:46 PM
Command Button vs Control Button RGibson Excel Programming 1 October 14th 03 02:24 AM
Command Button vs Form Button T K Excel Programming 4 August 26th 03 07:26 PM
command button George[_15_] Excel Programming 5 August 9th 03 11:49 AM


All times are GMT +1. The time now is 08:16 AM.

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"