Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Command Button Problems Still


HI ALL

Now if I put in the a value and then delete the value the Command
Button 3 goes to disable but the Command Button 1 does not. I can't
understand why.

Please help, thx in advance




Private Sub Worksheet_SelectionChange(ByVal Target As Range)


If Sheets("Quality Accessing Template").Range("B6").Value = "0" And
Sheets("Quality Accessing Template").Range("B6").Value <= "9999" Then
Sheets("Quality Accessing Template").CommandButton3.Enabled = True
Sheets("Quality Accessing Template").CommandButton1.Enabled = True


Else


Sheets("Quality Accessing Template").CommandButton3.Enabled = False
Sheets("Quality Accessing Template").CommandButton3.Enabled = False

End If

End Sub


--
Mikeice
------------------------------------------------------------------------
Mikeice's Profile: http://www.excelforum.com/member.php...o&userid=22467
View this thread: http://www.excelforum.com/showthread...hreadid=380009

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Command Button Problems Still


First thing, remove the quotes around 0 and 999
Second thing, you are not disabling the commandbutton1. Check your else
code, both are 3.

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=380009

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 protection problems???? Chris Watson Excel Worksheet Functions 3 February 25th 06 03:24 PM
Command Button problems when printing Don't know enough Excel Programming 1 April 17th 04 03:38 AM
Problems Attaching Macros to Command Button Jim[_33_] Excel Programming 1 October 23rd 03 08:41 AM
Command Button problems steve Excel Programming 3 September 17th 03 03:47 PM
Command Button problems Ed Lisay Excel Programming 1 September 16th 03 10:29 AM


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