LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
baj baj is offline
external usenet poster
 
Posts: 24
Default Run VBA on Checkbox Value

Hi,

If you fill in a checkbox this means basically that you put the value
on TRUE, if you unfill it you put it on FALSE so you can connect a
little procedure with it. With a simple If...Then Structure you can Do
an action (fill certain cells) or UnDo (erase) the action :

Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then
TextBox1 = "one" ' I used a textbox in a userform that get s filled
with the word "one" if the Checkbox1 is clicked on
Else ' and this textbox is erased when it s been
unchecked again
TextBox1 = "" ' ofcourse you can replace these steps by the
steps filling/erasing cells in a worksheet
End If
End Sub


Bye
Baj

 
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
Checkbox AlliSun Excel Discussion (Misc queries) 2 September 17th 08 09:48 PM
How to have Checkbox A uncheck with checked Checkbox B Texas Aggie Excel Discussion (Misc queries) 3 July 20th 07 10:58 PM
Checkbox Help [email protected] Excel Programming 5 March 10th 05 12:03 AM
vba checkbox gareth thomson Excel Programming 2 September 29th 04 09:51 PM
Help w/ CheckBox ????? nrage21[_63_] Excel Programming 4 September 16th 04 04:21 PM


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