Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Reset a commandbutton

How can I reset a CommandButton that gets stuck in its 'clicked' position?

TIA

Matthew


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Reset a commandbutton


Are you sure this is a toggle switch and not a command button??


--
davesexcel


------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=571080

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Reset a commandbutton

Also, a commandbutton will stay depressed as long as its event code is
executing.

--
Regards,
Tom Ogilvy

"Matthew" wrote in message
...
How can I reset a CommandButton that gets stuck in its 'clicked' position?

TIA

Matthew




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Reset a commandbutton

Thanks for the replies...

The problem is... I have a form with CommandButtons that is used for data
entry. I had a problem that if I needed press the same button twice I had
to wait for it to be ready. With advice from Die_another_day I added some€¦

Private Sub CommandButton1_DblClick(ByVal cancel As MSForms.ReturnBoolean)

routines and that solved the problem.

The problem now is that if my data entry ends in a double click the
commandbutton is left in its 'clicked' state which seems to stop other
buttons from working.

This is probably caused by the code CommandButton1.Enabled = false which
runs if 'end of data entry' condition is satisfied. I think the button is
being disabled before it has chance to 'unclick'.

Hope this makes sense!

Thanks

Matthew

"Tom Ogilvy" wrote:

Also, a commandbutton will stay depressed as long as its event code is
executing.

--
Regards,
Tom Ogilvy

"Matthew" wrote in message
...
How can I reset a CommandButton that gets stuck in its 'clicked' position?

TIA

Matthew





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
Commandbutton alvin Kuiper Excel Programming 6 November 27th 05 06:28 PM
CommandButton Alvin Hansen[_2_] Excel Programming 3 August 16th 04 06:35 PM
CommandButton chris[_12_] Excel Programming 1 April 15th 04 01:01 AM
CommandButton rwebster3 Excel Programming 0 April 14th 04 08:16 PM
Commandbutton David Fixemer Excel Programming 2 February 25th 04 10:18 PM


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