- ©«¤l
- 17
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 71
- ÂI¦W
- 1
- §@·~¨t²Î
- window
- ³nÅ骩¥»
- google
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2017-6-27
- ³Ì«áµn¿ý
- 2024-11-18
|
קﬡ¶Ã¯¦WºÙ
Àɮפ¤¦³°w¹ïקﬡ¶Ã¯¦WºÙ¥hºÞ²z¡A¦ý¬OµLªkºÞ²z¤u§@ªí¶±¤¤¡A¨Ï¤w¸g¦s¦b¤u§@ªí¦WºÙ¤£nקï¡A¬O§_¦³µ{¦¡¼¶¼g¤W±o¿ù»~¡C- Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
- 'Updateby MMC&LBC 107.09.11
- Dim i As Integer
- Dim Name, code, t As String
- Dim xR, fd, PW As Range
- Dim wSheet As Worksheet
- code = ":/\?*[]"
- Set xR = Cells(Rows.Count, "C").End(xlUp)(2)
-
- If xR.Row > 1 Then
- While xR = ""
- xR = ActiveSheet.Name '¦b¤u§@ªí³æºûÅ@¤¤
- Wend
-
- With Sheets("¤u§@ªí³æºûÅ@")
- Set fd = .Columns(3).Cells.Find(ActiveSheet.Name, LookIn:=xlValues, lookat:=xlWhole) '¦bCÄæ·j´M¤u§@ªí¦WºÙ¤§¤º®e¬Ý¬Ý¨Ï§_¤w¸g¦s¦b¸Óµ§¸ê®Æ
-
- If fd Is Nothing Then
- MsgBox "¤u§@ªí³æºûÅ@¤¤µL¤u§@ªí: " & xR & " ¡A»Ý§ó§ï¤u§@ªí¦WºÙ!", , "§ó§ï¤u§@ªí¦WºÙ!"
- For Each wSheet In Worksheets
- With Sheets("¤u§@ªí³æºûÅ@")
- Set fd = .Columns(3).Cells.Find(Name, LookIn:=xlValues, lookat:=xlWhole) '¦bCÄæ·j´M¤u§@ªí¦WºÙ¤§¤º®e¬Ý¬Ý¨Ï§_¤w¸g¦s¦b¸Óµ§¸ê®Æ
- If wSheet.Name = xR Then
- 10 Name = InputBox("½Ð¿é¤J¤u§@ªí¦WºÙ¡I" & vbNewLine & "ì¦WºÙ:" & wSheet.Name, "§ó§ï¤u§@ªí¦WºÙ", , 8000, 4000) '´£¥Ü
- i = 1: t = Mid(Name, i, 1)
- If Len(Name) > 31 Then
- MsgBox "¤u§@ªí¦WºÙ¤j©ó31Ó¦r¤¸!": GoTo 10
- ElseIf Len(Name) = 0 Then
- MsgBox "¤u§@ªí¦WºÙªÅ¥Õ!": GoTo 10
- ElseIf InStr(1, code, t) > 0 Then: i = i + 1
- MsgBox "¤u§@ªí¦WºÙ¦³¯S®í¦r¤¸¡I": GoTo 10
- ElseIf Not fd Is Nothing Then
- MsgBox "¤u§@ªí¦WºÙ«½Æ¡I": GoTo 10
- Else
- ActiveSheet.Name = Name
- End If
- End If
- End With
- Next wSheet
- End If
- End With
- End If
-
- End Sub
½Æ»s¥N½X |
-
-
קﬡ¶Ã¯¦WºÙ.zip
(29.57 KB)
קﬡ¶Ã¯¦WºÙ
|