- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 6# myleoyes - Private Sub Worksheet_SelectionChange(ByVal Target As Range)
- With Target(1)
- If .Row >= 3 And .Row <= 200 And .Column >= 2 And .Column <= 100 Then
- If .Column Mod 3 = 0 And .Value = "" Then ¶µ¥Ø 'CÄæ
- If (.Column - 1) Mod 3 = 0 Then 'DÄæ
- If .Value = "" Then ¼Æ¾Ú Else µù¸Ñ
- End If
- End If
- End With
- End SubSub ¶µ¥Ø()
- Dim Z, Tile$, Msg As Boolean 'Msg ¹w³]¬O False
- Tile = "½Ð¿é¤J¶µ¥Ø¦WºÙ"
- Again:
- Z = Application.InputBox(Tile, , "¦¦w¡I", Type:=2)
- If Z <> False Then
- For I = 1 To Len(Z)
- If Mid(Z, I, 1) Like "[!0-9]" Then Msg = True: Exit For
- Next
- If Msg = True Then 'Msg = True ¬O¦r¦ê
- ActiveCell = Z
- Else '§P©w«D¦r¦ê
- Tile = "½Ð¿é¤J¶µ¥Ø¦WºÙ -- ¥²¶·¬O¤å¦r "
- GoTo Again
- End If
- ElseIf Z = False Then '«ö¤U¨ú®ø
- ActiveCell = ""
- End If
- ActiveCell.Offset(, 1).Select
- End Sub
½Æ»s¥N½X |
|