Home |
Search |
Today's Posts |
#2
![]() |
|||
|
|||
![]()
Bart,
Using event code you can do it Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo ws_exit: Application.EnableEvents = False If Not Intersect(Target, Me.Range("B2:H10")) Is Nothing Then With Target Select Case .Value Case 1: .Value = "Mark" Case 2: .Value = "John" Case 3: .Value = "Bill" End Select End With End If ws_exit: Application.EnableEvents = True End Sub 'This is worksheet event code, which means that it needs to be 'placed in the appropriate worksheet code module, not a standard 'code module. To do this, right-click on the sheet tab, select 'the View Code option from the menu, and paste the code in. Extend the list as far as you want. -- HTH RP (remove nothere from the email address if mailing direct) "bart" wrote in message ... I want to do my schedule with Excell, and I was wondering if it's possible to type a number and get a name instead... for example if on the 3rd of february, Mark is working, and that I associate the number 1 to Mark. is there a way that if I type "1" under the 3rd of february, that converts it directly to Mark? thanks Gaetan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Seed numbers for random number generation, uniform distribution | Excel Discussion (Misc queries) | |||
How to format a number in Indian style in Excel? | Excel Discussion (Misc queries) | |||
Defining a number in a cell by text then subtracting it by the tex | Excel Worksheet Functions | |||
Formatting a cell as "text" in the number catagory. | Excel Worksheet Functions | |||
GET.CELL | Excel Worksheet Functions |