Skip to content

Instantly share code, notes, and snippets.

@ndthanh
Created March 31, 2017 04:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndthanh/102cd3d3b5c5388c25710869f6e9c9a7 to your computer and use it in GitHub Desktop.
Save ndthanh/102cd3d3b5c5388c25710869f6e9c9a7 to your computer and use it in GitHub Desktop.
Sub HoaHoc()
For Each cll In Selection
sText = cll.Value
For i = 1 To Len(sText)
If IsNumeric(Mid(sText, i, 1)) Then cll.Characters(Start:=i, Length:=1).Font.Subscript = True
Next
Next
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment