ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Interactive checkboxes (https://www.excelbanter.com/excel-discussion-misc-queries/55637-interactive-checkboxes.html)

courtney_lee31

Interactive checkboxes
 
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.

Anne Troy

Interactive checkboxes
 
Use the Forms toolbar. :)
************
Anne Troy
VBA Project Manager
www.OfficeArticles.com

"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.




Dave Peterson

Interactive checkboxes
 
Like a survey form on a worksheet?

If yes, you may want to try the code at Debra Dalgleish's site:
http://www.contextures.com/xlform01.html

courtney_lee31 wrote:

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.


--

Dave Peterson

Bob Phillips

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.





All times are GMT +1. The time now is 05:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com