Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This is what I am trying to do:
For a given cell in column B I want to make a manual entry, e.g., in B10. When I press return I want a VBA routine to run that will enter information into the adjacent cell in column A, A10 in this case. KeyPress function does not respond to the "event" of return being pressed. Is there a way to detect the return or "Enter" key being pressed? Thanks. Thomas |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Thomas
No. But Enter completes a cell entry, and there's a useful event detecting just that. Rightclick the sheet tab, choose View Code, paste this in: Private Sub Worksheet_Change(ByVal Target As Range) MsgBox "You wrote " & Target(1).Formula & _ " in " & Target(1).Address End Sub See Chip's page http://www.cpearson.com/excel/events.htm for theory on this. HTH. best wishes Harald "Thomas" skrev i melding ... This is what I am trying to do: For a given cell in column B I want to make a manual entry, e.g., in B10. When I press return I want a VBA routine to run that will enter information into the adjacent cell in column A, A10 in this case. KeyPress function does not respond to the "event" of return being pressed. Is there a way to detect the return or "Enter" key being pressed? Thanks. Thomas |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! | Excel Discussion (Misc queries) | |||
Make "Edit" mode default, rather than "Enter"? | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
How can I do convert letters on "*" using keypress on excel | Excel Programming |