- ©«¤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
|
¦^´_ 1# av8d
³o°ÝÃD«Ü±`¨£,¸Õ¸Õ¬Ý- Private Sub Worksheet_Change(ByVal Target As Range)
- Dim Bo As Workbook, Save_Name As String, E As Object
- Application.EnableEvents = False '°±¤îª«¥óªºÄ²µo¨Æ¥ó
- Application.DisplayAlerts = False
- If Target.Address(0, 0) = "A1" Then
- With ActiveWorkbook
- Save_Name = "D:\" & [A1] & ".xls"
- .Sheets("¤u§@ªí1").Copy
- End With
- With ActiveWorkbook
- For Each E In .VBProject.VBComponent
- E.CodeModule.DeleteLines 1, E.CodeModule.CountOfLines
- Next
- .SaveCopyAs Save_Name
- .Close False
- End With
- [A1].Select
- Selection.ClearContents '³o¤u§@ªí¤¤ªºÀx¦s®æ¦³×§ï
- '** Worksheet_Change (³o¬O¤u§@¤¤ªºÀx¦s®æ¦³×§ï®É->¹w³]ªºÄ²µo¨Æ¥óµ{§Ç)
- End If
- Application.DisplayAlerts = True
- Application.EnableEvents = True '«ì´_ª«¥óªºÄ²µo¨Æ¥ó
- End Sub
½Æ»s¥N½X |
|