#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default Checkmark question.

Hello All!

In Access you can set up a "cell" so that a checkmark can appear on one
mouse click and disappear on another. Can this be done in Excel?

Thanks in advance!

--


James Silverton
Potomac, Maryland

Email, with obvious alterations:
not.jim.silverton.at.verizon.not

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Checkmark question.

hi
not to my knowledge.
you can format the cell to font marlett then use the lower case a key to add
a check to the cell. del key to remove it.

Regards
FSt1

"James Silverton" wrote:

Hello All!

In Access you can set up a "cell" so that a checkmark can appear on one
mouse click and disappear on another. Can this be done in Excel?

Thanks in advance!

--


James Silverton
Potomac, Maryland

Email, with obvious alterations:
not.jim.silverton.at.verizon.not


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Checkmark question.

You need an event macro to do it with a mouse click.

Select the sheet where you want this to happen.
Right click the sheet tab, select View Code
Copy/paste the code below into the window that opens.

Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim myHeight As Double
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
myHeight = .EntireRow.RowHeight
.Value = "a"
.Font.Name = "Marlett"
.EntireRow.RowHeight = myHeight
End If
End With
End If
sub_exit:
Application.EnableEvents = True
End Sub

Close the window to return to Excel

The range effected is A1:A100. Change to suit.


--
Biff
Microsoft Excel MVP


"James Silverton" wrote in message
...
Hello All!

In Access you can set up a "cell" so that a checkmark can appear on one
mouse click and disappear on another. Can this be done in Excel?

Thanks in advance!

--


James Silverton
Potomac, Maryland

Email, with obvious alterations:
not.jim.silverton.at.verizon.not



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Checkmark question.

a checkmark can appear on one mouse click and disappear on another.

The suggestion I made doesn't work *exactly* like that. It works based on
*selecting* the cell. If the cell is empty and you select it then a
checkmark is entered. To remove the checkmark you'd have to select another
cell then reselct the cell with the checkmark for it to be removed. The
closest you can get to using just "one mouse click" would be a before double
click event macro. If the cell is empty a double click enters the checkmark
and then another double click removes it.

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
You need an event macro to do it with a mouse click.

Select the sheet where you want this to happen.
Right click the sheet tab, select View Code
Copy/paste the code below into the window that opens.

Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim myHeight As Double
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
myHeight = .EntireRow.RowHeight
.Value = "a"
.Font.Name = "Marlett"
.EntireRow.RowHeight = myHeight
End If
End With
End If
sub_exit:
Application.EnableEvents = True
End Sub

Close the window to return to Excel

The range effected is A1:A100. Change to suit.


--
Biff
Microsoft Excel MVP


"James Silverton" wrote in message
...
Hello All!

In Access you can set up a "cell" so that a checkmark can appear on one
mouse click and disappear on another. Can this be done in Excel?

Thanks in advance!

--


James Silverton
Potomac, Maryland

Email, with obvious alterations:
not.jim.silverton.at.verizon.not





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
Insert a Checkmark Mac 5430[_2_] Excel Discussion (Misc queries) 5 July 1st 08 07:17 PM
checkmark boxes ajr81 Excel Discussion (Misc queries) 4 November 9th 07 03:53 PM
Checkmark box in Excel Curious Ann Excel Discussion (Misc queries) 3 April 5th 06 06:50 PM
How do I set up a checkmark box in Excel? KMHarpe Excel Discussion (Misc queries) 1 June 17th 05 03:01 AM
Checkmark instead of InputBox daniel chen Excel Discussion (Misc queries) 4 April 17th 05 05:19 PM


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