LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default entering keystroke commands in a formula

right click on the sheet tab and select view code.

Put in code like this:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Count 1 Then Exit Sub
If Target.Column = 3 Then
If Not IsEmpty(Target.Value) Then
Target.Offset(0, -1).Value = Date
Target.Offset(0, -1).NumberFormat = "mm/dd/yyyy"
Else
Target.Offset(0, -1).ClearContents
End If
End If
End Sub

You must manually enter those keystrokes to get the data - you can't put
them in a formula - the above code will put in a date in the same row in
column B when a value is entered in column C. If you clear the value in C,
it will clear the date in B.

--
Regards,
Tom Ogilvy
RandyB wrote in message
...
I would like to enter keystrokes in a formula, so that
when one cell is filled with a value, an adjoining cell
will automatically have a date filled in it. thanks to an
earlier newsgroup message, I saw that three keystrokes
CTRL+; provide a date in the selected cell. The formula
should be something like this in cell b10: =IF(ISBLANK
(C10)," ",CTRL+;)

My goal is to have the date "stamped" into a spreadsheet
entry toregister when a delivery is made.

But I don't know how to get Excel to recognize the three
keystrokes. Any help would be greatly appreciated!



 
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
Entering Formula - Cannot select cell as it is hidden by formula Jim Excel Worksheet Functions 0 March 25th 10 07:22 AM
KeyStroke to insert Cursor in Formula Bar JB Bates[_2_] Excel Discussion (Misc queries) 2 October 17th 09 11:37 AM
Entering a Formula; Remains a Formula Instead of Calculating billbrandi Excel Discussion (Misc queries) 1 April 3rd 08 12:50 AM
entering a formula Moof Excel Worksheet Functions 5 April 26th 07 03:31 AM
Formula Key Commands HiDbLevel Excel Discussion (Misc queries) 1 February 9th 05 07:48 AM


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