Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default enable or disable a workseet control

I have added a "checkbox" control to a worksheet and use the
control to set a condition use in a separate procedure. I need to
disable the control depending on another whether or not a cell is empty
..

How do I set the Enable property programmatically?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default enable or disable a workseet control

Thanks John, I was able work that into my project easily!

BTW, what is the significance of (ByVal Target As Range)? thats new to
me.

John Bundy remove wrote:
Example, if A1 is blank then checkbox is disabled otherwise it is enabled

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Cells(1, 1) = "" Then CheckBox1.Enabled = False Else CheckBox1.Enabled =
True

End Sub
--
-John Northwest11
Please rate when your question is answered to help us and others know what
is helpful.


" wrote:

I have added a "checkbox" control to a worksheet and use the
control to set a condition use in a separate procedure. I need to
disable the control depending on another whether or not a cell is empty
..

How do I set the Enable property programmatically?



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
Disable and enable dropdown combobox(Form Control) Vinod[_2_] Excel Discussion (Misc queries) 0 November 6th 07 07:30 PM
Can I put Multipage control on workseet hon123456 Excel Programming 1 June 19th 06 05:27 AM
Enable/Disable Macros Ben Schaum Excel Discussion (Misc queries) 1 January 21st 05 03:42 PM
SpinButton Enable/Disable MikeL Excel Programming 3 December 21st 04 02:51 PM
Enable/Disable Macro Brandon[_5_] Excel Programming 0 June 1st 04 06:36 PM


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