Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In Excel, I would like a cell to automatically insert a letter when it is
clicked or active. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi David,
Try: '============= Private Sub Worksheet_SelectionChange(ByVal Target As Range) Const myLetter As String = "Z" Const sAddress As String = "A1" If Not Intersect(Range(sAddress), Target) Is Nothing Then Range(sAddress).Value = myLetter End If End Sub '<<============= This is worksheet event code and should be pasted into the worksheets's code module (not a standard module and not the workbook's ThisWorkbook module): Right-click the worksheet's tab Select 'View Code' from the menu and paste the code. Alt-F11 to return to Excel. --- Regards, Norman "David is learning" <David is wrote in message ... In Excel, I would like a cell to automatically insert a letter when it is clicked or active. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Display contents of active cell in another cell? | Excel Discussion (Misc queries) | |||
referring to formula in a non active cell from active cell | Excel Discussion (Misc queries) | |||
Dynamically display in Active Cell value from 2 rows above it | Excel Discussion (Misc queries) | |||
Dynamically display in active cell the value x-rows above it? | Excel Discussion (Misc queries) | |||
Display of Active Cell in MS Excel 2007 | Excel Discussion (Misc queries) |