ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¬°¦ó¦Usheets ³QÁôÂäF

[µo°Ý] ¬°¦ó¦Usheets ³QÁôÂäF

½Ð±Ð¤j¤j:
        ±ß¾Ç¦³°ÝÃD¤T¡A·q½Ð½ç±Ð
¤@.VBA¦p¦ó¤U»Pªk¡A¨ÏA1.xls¤ºªº©Ò¦³sheetsÁôÂÃ
   ¥B¨ú®øÁôÂà »Ýpassword
¤G.©_©Ç   ­Ó¤H¾Ç²L   §ä¤£¥X­ì¦]
Application.Visible=False
FileName = ThisWorkbook.Path & "\¸ê®Æ®w\" & str1 & "¾Ç´Á¸ê®Æ.xls"
If fsobj.FileExists(FileName) Then
        With CreateObject(FileName)
            .Sheets(SHname).Cells.Copy wb.Sheets("Temp").Cells(1, 1)
            .Close True
        End With
End If
·í application.quit «á ¡AFileName¤§¦Usheets  ¨S¦³³QÁôÂÃ
¦ý
Application.Visible=False
FileName = ThisWorkbook.Path & "\¸ê®Æ®w\" & str1 & "¾Ç´Á¸ê®Æ.xls"
If fsobj.FileExists(FileName) Then
        With CreateObject(FileName)
           wb.Sheets("Temp").Cells.Copy  .Sheets(SHname).Cells(1, 1)
            .Close True
        End With
End If
·í application.quit «á ¡AFileName¤§¦Usheets  ³QÁôÂäF  
À³¦p¦ó¨Ï¥¦¤£ÁôÂà ¦A.Close True
¤T.¦p¦ó¨ÏA1.xls¥´¶}®É¤£Åã¥Ü¥\¯à¦C(*¤]´N¬O»¡¨Æ«e´N¤w¸g³]©w¦n)
     VBA¦p¦ó¦bB1.xls¨Æ«e¹ïA1.xls§@¨Æ«e³]©w

ÁÂÁÂ

¦^´_ 2# GBKEE
ÁÂÁª©¤j
Sheet1.Visible = xlSheetVeryHidden   »P
Sheet1.Visible = false      ¤@¼Ë¶Ü?
¤S
Sub Ex()
    Dim FileName As String, E As Workbook
    FileName = ThisWorkbook.Path & "\¸ê®Æ®w\" & "97¾Ç¦~¤W¾Ç´Á¸ê®Æ.xls"
    xlfilenam = Dir(FileName)
    Dim fsobj As Object
    Set fsobj = CreateObject("Scripting.FileSystemObject")
    If fsobj.FileExists(FileName) Then
        With CreateObject(FileName)
              .Windows(xlfilenam).Visible = False ---------¦¹¦æ¥i§_¥[±K
             .Close True
        End With
    End If

TOP

¦^´_ 2# GBKEE
¦A½Ð±ÐGBKEEª©¤j
³o¬O¦Û­qªí³æ  ¤w±K½X±±¨î¬yµ{
  Private Sub CommandButton1_Click()
    If Label1.Caption = "" Or Label1.Caption = "0" Then
        Unload Me
        Exit Sub
    End If
    If Label1.Caption = "510510" Then
        Sheets("­º­¶").Cells(5, 12) = Label1.Caption
        Unload Me
    Else
        TextBox1 = ""
        TextBox1.SetFocus
    End If

End Sub
Private Sub TextBox1_Change()
    If TextBox1 = "" Then
        Label1.Caption = TextBox1
        Exit Sub
    End If
    If Right(TextBox1, 1) <> "*" Then
        Label1.Caption = Label1.Caption & Right(TextBox1, 1)
    End If
    an = Len(TextBox1)
    TextBox1 = String(an, "*")
End Sub  
½Ð±Ðª©¤j:
§ÚªºCommandButton1.caption ¬O"½T©w"
·íTextBox1¿é¤J¤F±K½X¦n¤F    «ö  "½T©w"Áä §Y¥i
     ­Ó¤H·Q¤£²¾°Ê·Æ¹«  ª½±µ«ö  keyboard¤W"Enter"Áä  §Y¥iIJµo  CommandButton1_Click
     À³¦p¦ó¤U»yªk

TOP

¦^´_ 5# GBKEE
ÁÂÁÂGBKEE
½Ð±Ð
¨ú®ø ¦p ¥kÃ䪺ÁôÂà Sheet1.Visible = xlSheetVeryHidden   
¥Î Sheet1.Visible = True      ¥i¦³¨ä¥Lª¾¨ü­­?

TOP

        ÀR«ä¦Û¦b : ¤f»¡¦n¸Ü¡B¤ß·Q¦n·N¡B¨­¦æ¦n¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD