על בסיס הצעת ידידנו a26955 עם מעט שיפורים (בין השאר אנטר מספיק):
קוד:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim strValue As String
strValue = Target.Value
If Not IsNumeric(strValue) Then Exit Sub
If strValue >= 1 And strValue <= 34 Then
If MsgBox("האם להחליף את המספר בטקסט?", vbYesNo + vbMsgBoxRight + vbMsgBoxRtlReading) = vbYes Then
Target = Application.VLookup(Target.Value, Sheets("משפטים").Range("A1:B34"), 2, False)
End If
End If
End Sub