- ©«¤l
- 3
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 5
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2017-4-3
- ³Ì«áµn¿ý
- 2019-3-27
|
[µo°Ý] Excel VBS ³]¦¨¦@¥Î¬¡¶Ã¯¥\¯à
¤U¤è»yªk¡A¬OÅýÄæ¦ì¿é¤J^¤å¦r¥À³£·|Åã¥Ü¤j¼g¡A¦ý°ÝÃD§Ú§âExcel³]¦¨¡u¦@¥Î¬¡¶Ã¯¡v¥\¯à«á¡A¦p¤U»yªk´N·|®ø¥¢¡A¨º¦³¨ä¥L¿ìªk§JªA¶Ü¡H
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect([A1:A2000,K1:K2000], Target) Is Nothing Then Exit Sub
'if target.count > 1 then exit sub '·í range ¤¤ªº¼Æ¶q¦h©ó1Ó®ÉÂ÷¶}
Application.EnableEvents = False
'Target = UCase(Target) 'קï1ÓÄæ¦ì®É¾A¥Î
'קï¦hÓÄæ¦ì®É¡A»Ý§ï¦¨³o¼Ë
for each c in target.cells
c.value = ucase(c.value)
next
Application.EnableEvents = True
End Sub |
|