- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 277
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-12-23
|
¦^´_ 1# myleoyes - Private Sub Worksheet_SelectionChange(ByVal T As Range)
- Select Case T(1).Address(0, 0)
- Case "A2"
- ActiveWindow.ScrollColumn = 1
- End Select
- With T(1)
- If .Column = 1 And (.Row >= 7 And .Row <= 36) And T(1) <> "" Then Åܧó¦WºÙ .Row
- End With
- End Sub
½Æ»s¥N½X- Sub Åܧó¦WºÙ(k)
- Dim Z
- If MsgBox("±z½T©wnÅܧó¤u§@ªí¦WºÙ¶Ü?", vbYesNo) = vbYes Then
- Again:
- Z = Application.InputBox("¿é¤J¦WºÙ", " ½Ð¿é¤J¤u§@ªí¦WºÙ", " ¥²¶·¬O¤å¦r ", Type:=2)
- If Z = "" Or Z = False Then GoTo Again
- ' MsgBox("§A©Ò¿é¤J¦WºÙ¤w¦s¦b½Ð«·s¿é¤J!")
- Set a = Columns("A").Find(Z, lookat:=xlWhole)
- If Not a Is Nothing Then MsgBox "§A©Ò¿é¤J¦WºÙ¤w¦s¦b½Ð«·s¿é¤J!": GoTo Again
- ActiveCell = Z
- Sheets((k - 6) * 2).Select
- ActiveSheet.Name = Z
- ElseIf vbNo Then
- Exit Sub
- End If
- ²M°£¤u§@ªí
- End Sub
½Æ»s¥N½X |
|