- ©«¤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
¨S¦³¥d¦í
UserForm9 ×¥¿¤@¤U- Private Sub UserForm_Initialize()
- With TextBox1
- .PasswordChar = "*" '¤£Åã¥Ü ¯u¥¿¿é¤Jªº¦r¤¸
- 'PasswordChar ÄÝ©Ê «ü©w¬O§_Åã¥Ü¨ä¥¦¦r¤¸ªº¹w¯d¦ì¸m¡A¦Ó«DÅã¥Ü¹ê»Ú¤W¿é¤J TextBox ¤¤ªº¦r¤¸¡C
- 'ª`·N:¥u¦b^¤å¼Ò¦¡¤U¦³®Ä(¼Æ¦r,^¤å)
- .SetFocus
- End With
- End Sub
- Private Sub CommandButton1_Click()
- If TextBox1 = "520" Then
- Unload Me
- UserForm1.Show
- ElseIf Len(TextBox1) > 0 Then
- Dim n%
- Dim V&
- Application.Visible = True
- For V = 1 To ActiveWorkbook.Sheets.Count
- If Sheets(V).Name <> "º¶" Then
- Sheets(V).Visible = False
- End If
- Next V
- Unload Me
- Application.DisplayAlerts = False
- ActiveWorkbook.Save
- n = 0
- For Each w In Windows
- If Right(w.Caption, 4) = ".xls" Or Right(w.Caption, 5) = ".xlsx" Then n = n + 1
- Next
- If n < 2 Then
- ActiveWindow.Close
- Application.Quit
- Else
- Call DeleteMenu
- With ActiveWorkbook
- .Close True
- End With
- End If
- Else
- MsgBox "¨S¿é¤J±K½X"
- TextBox1.SetFocus
- End If
- End Sub
½Æ»s¥N½X |
|