- ©«¤l
- 262
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 280
- ÂI¦W
- 16
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- HK
- µù¥U®É¶¡
- 2015-8-11
- ³Ì«áµn¿ý
- 2024-10-26
|
ã¤j»¡±o¹ï, °h¤@¨B¤èªk, «öENTER«á³B²z¤À³Î¡C- Private Sub Worksheet_Change(ByVal Target As Range)
- If Target.Cells.Count > 1 Then Exit Sub
- Dim s$, a
- Application.EnableEvents = 0
- Application.ScreenUpdating = 0
- s = Target.Value
- With CreateObject("vbscript.regexp")
- .Pattern = "(.{5})"
- .Global = True
- a = Split(.Replace(s, "$1" & Chr(10)), Chr(10))
- Target.Resize(UBound(a) + 1) = Application.Transpose(a)
- Target.Offset(UBound(a) + 1).Activate
- End With
- Application.EnableEvents = 1
- Application.ScreenUpdating = 1
- End Sub
½Æ»s¥N½X |
-
-
zz.zip
(12.8 KB)
|