LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Interactive checkboxes

you could try this solution that I came up with a while back. This is a copy
of that post


Another way is to use this technique of having a check column, and
monitoring it with a worksheet selection change event. Add your code as
needed.


Rather than use a checkbox, I suggest just using a check column. So if we
assume that the data is in A1:E100 (change to suit), clicking in column A
will do what you want with this code.


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
On Error GoTo sub_exit
If Not Intersect(Target, Range("A1:A100")) Is Nothing Then
With Target
If .Value = "a" Then
.Value = ""
Else
.Value = "a"
.Font.Name = "Marlett"
End If
End With
End If
sub_exit:
Application.EnableEvents = True
End Sub


'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.



--

HTH

RP
(remove nothere from the email address if mailing direct)


"courtney_lee31" wrote in message
...
How can i create an interactive checkbox in excel? I want to create a form
with cells that i can check or uncheck with a click of my pointer.



 
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 make a workbook an interactive web page? DC Excel Discussion (Misc queries) 3 November 8th 05 09:40 PM
How do i create an interactive flowchart Reuben Excel Discussion (Misc queries) 0 August 8th 05 10:41 PM
Copy checkboxes to another sheet Trese Excel Discussion (Misc queries) 2 August 4th 05 01:17 PM
ability to put checkboxes into a cell (not just onto) jayjay17 Excel Discussion (Misc queries) 3 July 19th 05 09:01 PM
iNTERACTIVE EXCEL FILE NOT INTERACTIVE ON THE WEB kathy in kansas Excel Discussion (Misc queries) 0 January 24th 05 07:47 PM


All times are GMT +1. The time now is 10:44 PM.

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"