Excel doesn't really have a way to catch a single click on a cell.
How about a right click (or even double click)?
Here's a routine that checks to see if you rightclicked in column A.
If you did it checks to see what's in that cell. If it's empty, it adds a
formula (=char(252)) and formats the cell with a Wingdings font.
If the cell has something in it, it clears it.
Option Explicit
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
If Target.Cells.Count > 1 Then Exit Sub
If Intersect(Target, Me.Range("a:a")) Is Nothing Then Exit Sub
On Error GoTo errHandler:
Application.EnableEvents = False
If IsEmpty(Target) Then
Target.Formula = "=char(252)"
Target.Font.Name = "Wingdings"
Else
Target.ClearContents
End If
Cancel = True 'stop the rightclick menu
errHandler:
Application.EnableEvents = True
End Sub
Right click on the worksheet tab that should have this behavior. Select view
code and paste this in. Change the range to what you want.
And then back to excel to try it out.
If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
Chip Pearson also has some nice notes about workbook/worksheet events at:
http://www.cpearson.com/excel/events.htm