Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Macro on cell click??

How about double-click?:


First enter this macro into a worksheet's code area (not a module):

Private Sub Worksheet_BeforeDoubleClick(ByVal _
Target As Range, Cancel As Boolean)
Cancel = True
If IsEmpty(Selection.Value) Then
Selection.Value = "x"
Else
Selection.Value = Selection.Value & "x"
End If
End Sub

Whenever you double-click a cell in that sheet, it will add an "x" to the
value.
--
Gary's Student


"PG Oriel" wrote:

I am a school teacher and use my interactive whiteboard a lot, which is away
from my keyboard. I have a spreadsheet which I log behavioural issues in with
a x, xx, 15 depending on severity of warning.

I have this in the background and open it when i need to input my warnings.
This involves me going to my desk and keying it in.

Is there a way to click on a cell with the mouse, change it to a x, then if
I click a second time to change it to a xx, and then on 3rd click to 15.

I can do it using buttons, but is there any way to do it using a clicking
sequence ona cell only??? Thanks!!!

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
Can I set up a macro to run when a click a moninated cell ? Sam Excel Discussion (Misc queries) 2 May 20th 07 03:06 AM
Click in cell to run macro alistew Excel Discussion (Misc queries) 7 February 20th 07 05:03 PM
Can I launch macro by a cell click ? Cedric Dennis Excel Discussion (Misc queries) 2 March 11th 05 04:34 PM
Run Macro on Cell Click.. CliffHanger9 Excel Programming 0 November 17th 04 07:46 PM
Run Macro on Cell Click.. scottymelloty[_12_] Excel Programming 1 November 17th 04 06:15 PM


All times are GMT +1. The time now is 03:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"