cells

MindyLeigh

New Member
Joined
May 8, 2007
Messages
8
Is there a way to create cells to be like a check box. I am creating a survey in which there are 5 options and what I would like to do is make the cells so that that when they click into the cell it puts an X in it or maybe highlights that cell. Is this possible? I know I can use a Check box but it really isn't working the way I want it to.

Thanks,
Mindy
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
When you say it's not working how you'd like it, what do you mean? WOuld you be better off using option buttons to allow only one selection per section?
 
Upvote 0
I can't use an option button, I would like to but my president don't want that. The check boxes are just formatted wrong for what I want. I can use them, but they don't look good and I was just wondering if there was another option?
 
Upvote 0
What is the range for the X's? Are they a set amount apart, say B2:B6, B8:B12, etc.?
 
Upvote 0
Have you considered increasing the zoom level? You could make all the cells and font sizes smaller so they appear the same but it will increase the relative size of the check boxes.
 
Upvote 0
Try this code:

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim c As Range
If Target.Cells.Count > 1 Then Exit Sub
Set c = Intersect(Range("B3:F14"), Target)
If c Is Nothing Then Exit Sub
Cells(Target.Row, 2).Resize(, 5) = ""
Target = "X"
End Sub

To put this in:
Copy the code above
Right click the sheet tab for the sheet you want this to happen on, and click on View Code
Paste into white area
Hit Alt-q
This code will be saved with the workbook when you save the workbook.
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top