Skip to content

Instantly share code, notes, and snippets.

@rabitarochan
Created September 27, 2017 08:34
Show Gist options
  • Save rabitarochan/7f9e4620b40ba1aa9ccc50ead8d9ae7c to your computer and use it in GitHub Desktop.
Save rabitarochan/7f9e4620b40ba1aa9ccc50ead8d9ae7c to your computer and use it in GitHub Desktop.
Excel方眼紙自動化
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("C5:V25")) Is Nothing Then
Exit Sub
Else
If Len(Target.text) <= 1 Then
Exit Sub
End If
s = Target.text
Target.Value = Left(s, 1)
Target.Offset(0, 1).Value = Mid(s, 2)
End If
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment