Excel : Data Validation, how to force the user to enter a string that is 2 char long?

后端 未结 6 1206
梦谈多话
梦谈多话 2021-01-14 23:56

I would like to add some data validation on a cell in the latest Excel. I would like to force the user to enter a string that is two-char long, with the first char a digit,

6条回答
  •  难免孤独
    2021-01-15 00:04

    If you can use VBA then try to catch event Worksheet_Change:

    Private Sub Worksheet_Change(ByVal Target As Range)
        MsgBox "You just changed " & Target.Address
        ' your logic goes here
    End Sub
    

提交回复
热议问题