- ©«¤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# yangjie - Option Explicit
- Sub Ex()
- Dim FileName As String, E As Workbook
- FileName = "D:\BOOK2.XLS"
- With CreateObject(FileName)
- '*** Åã¥Ü¬¡¶Ã¯¬O³o¼Ë¶Ü? *****
- .Windows(.Name).Visible = True
- '.Sheets(SHname).Cells.Copy wb.Sheets("Temp").Cells(1, 1)
- .Close True
- End With
- End Sub
- Sub ¥\¯à¦C()
- ¥\¯à¦C_Show True 'Åã¥Ü¥\¯à¦C
- Stop
- ¥\¯à¦C_Show False '¤£Åã¥Ü¥\¯à¦C
- End Sub
- Private Sub ¥\¯à¦C_Show(Msg As Boolean)
- With Application
- .DisplayFullScreen = Not Msg
- .CommandBars.ActiveMenuBar.Enabled = Msg
- End With
- End Sub
- Sub Sheets_ÁôÂÃ()
- Dim i As Integer
- With ActiveWorkbook
- .Protect Password:="1234", Structure:=True, Windows:=True '«OÅ@¬¡¶Ã¯ªº µ²ºc,µøµ¡
- .Unprotect Password:="1234" '¬¡¶Ã¯: ¸Ñ°£«OÅ@.
- For i = 2 To .Sheets.Count '¬¡¶Ã¯¦Ü¤Ön¦³¤@±i¤u§@ªí¬O¥i¨£ªº
- Sheet1.Visible = xlSheetVeryHidden 'È= 2 :vba ªº¤u§@ªíÁôÂÃ,»Ý¥Îvba ¨ú®ø¤u§@ªíÁôÂÃ
- Next
- .Protect Password:="1234", Structure:=True, Windows:=True
- End With
- End Sub
½Æ»s¥N½X |
|