Art, that worked however it puts "X" in every cell I click on. Can I make it
put an X in only selected cells?
No problem, except that depending upon what cells you want this to work for
it can get messy. You'll need an If Statement surrounding the original
statement you typed in.
Suppose that you want the X to appear if you click in a cell in columns C to
E, and for rows 4 to 6. You can do the following:
If target.column>=3 and target.column<=5 and _
target.row>=4 and target.row<=6 then
selection="X"
end if
Notice a few things. First, at the end of my first line there is a space
and an underscore. That's how you contnue the statement to the next line.
You don't have to do this, you can just string it out (probably up to 255
characters), but it usually makes for a more readable statement. If you do
do it, don't forget the space before the underscrore.
I indented selection="X" -- that's not necessary, but again improves
readability.
Finally, if you're conditions are much more complicated you can next the if
statements -- and if they're too complicated for that we can come up with
some other solution.
Art