粘贴到 thisworkbook里面
Option Explicit
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Column <> 1 Or Target.Row < 2 Then End
If Target.Rows.Count = Rows.Count Then End
Dim reg As Object, mh As Object, str$, item, rng As Range
Set reg = CreateObject("vbscript.regexp")
With reg
.Global = True
.Pattern = "\d+"
For Each rng In Target
If Len(rng.Value) = 0 Then End
Set mh = .Execute(rng.Value)
str = ""
For Each item In mh
str = str & "-" & item
Next item
Application.EnableEvents = False
rng = "高" & Mid(str, 2)
Application.EnableEvents = True
Next rng
End With
End Sub