Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Optimize Time In Filling Cells

rfs04 wrote:
Hello all,

Does anybody know if it's possible to make excel putting a cross or a
circle or whatever in a cell only by clicking on it and if you click
again it disappears??

Maybe its science fiction?


If you'd settle for a right-click you could try something like:
'''
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As
Boolean)
Select Case Target.Formula
Case "": Target.Formula = "X"
Case "X": Target.Formula = "O"
Case Else: Target.Formula = ""
End Select
Cancel = True
End Sub
'''
Though you might want to check the range you are in.

For instance add:

If Target.Row 3 Or Target.Column 3 Then Exit Sub

before the Select Case if you're playing noughts & crosses (tic-tac-toe)

--
Steve Garman

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
Filling in blank cells with information from cells above it tracytracy123 Excel Discussion (Misc queries) 1 June 22nd 09 11:04 PM
Filling cells FSt1 Excel Discussion (Misc queries) 1 January 10th 08 03:39 AM
filling in time in hours and minutes tikchye_oldLearner57 Excel Discussion (Misc queries) 2 November 26th 06 12:25 PM
Printing a workbook one row at a time filling in a form with the d LostinData New Users to Excel 1 May 6th 05 08:16 PM
Optimize Time In Filling Cells Don Guillett[_4_] Excel Programming 0 December 30th 03 04:23 PM


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