Then I don't know how to do that in any sensible way. Rather than format the cell (which means the underlying cell value remains as 12345 and the spaces just appear in the cell display), would it be acceptable to actually put those spaces in so the actual cell value became "12 34 5"? That would certainly be possible provided macros can be enabled.I would want 12 34 5
The longest number could be up to 200. I would prefer infinite.
Thanks for your help. much appreciated
Function InsertSpace(r As String) As String
With CreateObject("vbscript.regexp")
.Pattern = "([A-F0-9]{2})"
.Global = True
InsertSpace = .Replace(r, "$1 ")
End With
End Function