- ©«¤l
- 169
- ¥DÃD
- 41
- ºëµØ
- 0
- ¿n¤À
- 219
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN10
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-7-31
- ³Ì«áµn¿ý
- 2023-9-15
|
¥»©«³Ì«á¥Ñ sillykin ©ó 2017-3-12 11:26 ½s¿è
¦^´_ 6# GBKEE
ÁÂÁÂG¤jªº¦^ÂÐ
¤x§R°£¦¹±ø If Rng.Cells(Rng.Cells.Count).End(xlToLeft).Address <> Rng.Cells(1).Address Then MsgBox "¸ê®Æ¦ì¸m¦³»~ ! ½ÐÀˬd ": Exit Sub¥i¥¿±`¹B§@
,¦ý¿é¤J¨¤ÀÃÒÁÙ¬OµLªkÀËÅç¬O§_¿é¤J¥¿½T»P§_?
¬On¦b¥[¤J¬F©²ÅçÃÒµ{§Ç¶Ü???
¨Ò¦p
Private Sub Worksheet_Change(ByVal Target As Range) 'ɤᨤÀÃÒÀˬd
Dim T, i%, S
With Target
If .Count > 1 Then Exit Sub
If Intersect([B51:P51], .Cells) Is Nothing Then Exit Sub
Application.EnableEvents = False
.Value = UCase(.Value)
Application.EnableEvents = True
If Not .Value Like "[A-Z]#########" Then MsgBox "¨¥÷ÃÒ¿é¤J¿ù»~!!": Exit Sub
T = InStr("ABCDEFGHJKLMNPQRSTUVXYWZIO", Left(.Value, 1)) + 9 & Mid(.Value, 2, 8)
For i = 1 To 10
S = S + Mid(T, i, 1) * Left(11 - i, 1)
Next i
T = Right(10 - Right(S, 1), 1)
If T <> Mid(.Value, 10, 1) Then MsgBox "¨¥÷ÃÒ¦r¸¹¿ù»~¡IÀˬd½X¡G" & T
End With
¤p©f¤£¤~ |
|