Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JK JK is offline
external usenet poster
 
Posts: 78
Default Command Button Issue

Sometimes On_Click the CB on my sheet (created with the Control Toolbox)
continues to appear as if it's pressed down (even after the procedure it
calls finishes). But it looks odd. Can anyone suggest what I can do to
correct this strange behavior?

Thank you in advance.

Jim Kobzeff


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Command Button Issue

"JK" wrote in message news:8W8sd.2302$PL1.216@trnddc09...
Sometimes On_Click the CB on my sheet (created with the Control Toolbox)
continues to appear as if it's pressed down (even after the procedure it
calls finishes). But it looks odd. Can anyone suggest what I can do to
correct this strange behavior?


Hi Jim,

Try putting the following lines of code at the beginning of the Click
event (if you're displaying a UserForm in the Click event, put them
immediately after you dismiss the UserForm):

Application.ScreenUpdating = False
Application.ScreenUpdating = True

This doesn't always work, but most of the time it will force Excel to
refresh its window and get the appearance back to normal prior to running a
long procedure.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *



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
LOOKUP Command Issue VegasBurger Excel Worksheet Functions 1 August 2nd 06 07:35 PM
Can I issue a File, Send To, Mail Recipient command in a macro? Magic Excel Programming 1 November 30th 04 09:20 PM
Need help with Command Bar Button issue ?? Dan Thompson Excel Programming 3 October 20th 04 12:08 AM
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


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

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"