Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jjakel
 
Posts: n/a
Default Can I automatically put X in a cell just by clicking that cell?

In Excel, I want to have a spreadsheet where users can check-mark cells, just
by clicking that cell...not actually having to type an X in it. Is this
possible and if so, how?
  #2   Report Post  
Paul B
 
Posts: n/a
Default

jjakel, you can with some code, put in worksheet code, right click on the
worksheet tab a view code, paste this in, will put an X in column A when you
click in it, will also remove it if you click it again

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Target.Count 1 Then Exit Sub
If Target.Column = 1 Then
If Len(Trim(Target.Value)) = 0 Then
Target.Value = "X"
Else
Target.ClearContents
End If
End If
End Sub

You could also make it put in a check mark like this

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Target.Count 1 Then Exit Sub
If Target.Column = 1 Then
If Len(Trim(Target.Value)) = 0 Then
Target.Value = Chr(252)
Target.Font.Name = "Wingdings"
Target.Font.Size = 10
Else
Target.ClearContents
End If
End If
End Sub

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"jjakel" wrote in message
...
In Excel, I want to have a spreadsheet where users can check-mark cells,
just
by clicking that cell...not actually having to type an X in it. Is this
possible and if so, how?



  #3   Report Post  
PCLIVE
 
Posts: n/a
Default

Why not use checkboxes from the Control Toolbox toolbar. Then link the
check box to a cell.
Just a thought.

Paul

"jjakel" wrote in message
...
In Excel, I want to have a spreadsheet where users can check-mark cells,
just
by clicking that cell...not actually having to type an X in it. Is this
possible and if so, how?



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
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
display multiple lines of text within a merged cell automatically sssizemore Excel Worksheet Functions 1 June 15th 05 02:30 AM
copy combobox - cell link to change automatically Bojana Excel Worksheet Functions 1 June 8th 05 02:35 PM
Edit cell automatically takes you to cell cgrant Excel Worksheet Functions 1 May 20th 05 04:30 PM
How do I automatically hide columns in a worksheet based on a cell value? dkhedkar Excel Worksheet Functions 1 March 5th 05 12:20 AM


All times are GMT +1. The time now is 08:55 PM.

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"