
Originally Posted by
Ceilingwalker
...if I type or paste B3:0/0 in a cell, could it automatically make the value B3[0].0 instead...
maybe yes, maybe no ... :
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Dim strToChng As String
If TypeName(Sh) = "Worksheet" Then
'"B3:0/0" to "B3[0].0"
strToChng = Target.Value
'If strToChng Like "[A-Z]#:[0-9]/[0-9]" Then
'or
If strToChng Like "[A-Z]#:#/#" Then
strToChng = Replace(strToChng, ":", "[", 1, -1, 1)
strToChng = Replace(strToChng, "/", "].", 1, -1, 1)
Target.Value = strToChng
End If
End If
End Sub
Code from ThisWorkbook module.
Bookmarks