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

I have inserted two buttons CMD1 and CMD 2. On opening the workbook, I should
have the cmd 1 enabled and cmd2 disabled.

How to do it?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Disable Command Button


Raj

2 ways

Right click on button select properties Select Enable and change to
flase


From within a macro

Private Sub CommandButton1_Click()
CommandButton2.Enabled = False
Your Code Here
End Sub


--
mudraker
------------------------------------------------------------------------
mudraker's Profile: http://www.excelforum.com/member.php...fo&userid=2473
View this thread: http://www.excelforum.com/showthread...hreadid=520920

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
how to disable/enable command button(ActiveX) using macro enahs_naneek Excel Discussion (Misc queries) 1 February 5th 10 12:32 PM
How disable menu command Armangelo Excel Discussion (Misc queries) 0 February 1st 06 10:00 AM
Disable command button Mikeice[_22_] Excel Programming 2 June 17th 05 10:17 AM
Disable Command Button when File name begins with Customer? RPIJG[_58_] Excel Programming 1 June 24th 04 05:53 PM
How I disable a command button until cell has value? Brian Excel Programming 4 October 21st 03 08:12 PM


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