Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default CLICK TO enter value

I have a spreadsheet that tracks tasks done. Currently, they have to enter a
"1" into the field chosen. Is there a way that they could just click in the
space and a 1 would be entered?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,173
Default CLICK TO enter value

Dan

You could use a Worksheet_SelectionChange() event

right-click on the sheet tab and select 'View code' and paste the code
below. It will add a 1 to ant cell clicked in column A or take it away if
one already exists

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Application.Intersect(Target, Columns("A:A")) Is Nothing Then
If Target.Value = "" Then
Target.Value = 1
Else
Target.Value = ""
End If
End If
End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"DanW" wrote in message
...
I have a spreadsheet that tracks tasks done. Currently, they have to enter
a
"1" into the field chosen. Is there a way that they could just click in
the
space and a 1 would be entered?


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
AutoComplete list should accept ENTER key as well as TAB johndog Excel Discussion (Misc queries) 0 October 4th 06 09:53 PM
How do I enter formula for < or numbers. Betty P. Excel Worksheet Functions 7 November 27th 05 06:25 PM
shading a rowwhen a time is entered but no shading when 0 is enter fomula problems Excel Worksheet Functions 7 October 23rd 05 08:44 PM
Is there a (non-binary) "if x then enter y" forumula? Julie P. Excel Worksheet Functions 9 June 21st 05 08:49 PM
Excel startup switches Randy Excel Discussion (Misc queries) 9 June 14th 05 10:27 PM


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