VBA¦p¦ó§â¦r¦ê¤¤ªº^¤å¦r«e´¡¤JªÅ®æ?
- ©«¤l
- 97
- ¥DÃD
- 33
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2019-5-7
- ³Ì«áµn¿ý
- 2022-8-25
|
¥»©«³Ì«á¥Ñ s13030029 ©ó 2022-8-25 08:41 ½s¿è
¦^´_ 3# samwang
¦]¬°§Ú³oÓ¬On³B²z¦P¤@Àx¦s®æ¤¤ªº¦r¦ê¡A¦Ó¥BÁÙ¦³´«¦æ¡A©Ò¥H¦bArrªº¦a¤è·|¦³¥X¿ù¡C
|
|
|
|
|
|
|
- ©«¤l
- 97
- ¥DÃD
- 33
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2019-5-7
- ³Ì«áµn¿ý
- 2022-8-25
|
¥»©«³Ì«á¥Ñ s13030029 ©ó 2022-8-25 08:41 ½s¿è
¦^´_ 2# Andy2483
¦]¬°§Ú³oÓ¬On³B²z¦P¤@Àx¦s®æ¤¤ªº¦r¦ê¡A¦Ó¥BÁÙ¦³´«¦æ¡A©Ò¥H¦bArrªº¦a¤è·|¦³¥X¿ù¡C
|
|
|
|
|
|
|
- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-10-30
|
¦^´_ 1# s13030029
½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub test()
Dim Arr, i, x, T, j$, c
Arr = Range([A1], [A65536].End(3))
For i = 1 To UBound(Arr)
j = Trim(Arr(i, 1))
c = Len(j)
For x = c To 2 Step -1
T = UCase(Mid(j, x, 1))
If Asc(T) > 64 And Asc(T) < 123 Then
Arr(i, 1) = Replace(Arr(i, 1), T, " " & T)
End If
Next
Next
[B1].Resize(UBound(Arr), 1) = Arr
End Sub |
|
|
|
|
|
|
- ©«¤l
- 1446
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 1470
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Excel 2010 & 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2020-7-15
- ³Ì«áµn¿ý
- 2024-10-21
|
¦^´_ 1# s13030029
½Ð«e½ú¸Õ¸Õ¬Ý
Option Explicit
Sub test()
Dim Arr, i, x, T, j$, c
Arr = Range([A1], [A65536].End(3))
For i = 1 To UBound(Arr)
j = Trim(Arr(i, 1))
c = Len(j)
For x = c To 2 Step -1
If UCase(Mid(j, x, 1)) Like "[A-Z]" Then
j = Trim(Mid(j, 1, x - 1)) & " " & Mid(j, x, c * 2)
End If
Next
Arr(i, 1) = j
Next
[B1].Resize(UBound(Arr), 1) = Arr
End Sub |
|
|
|
|
|
|