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

[µo°Ý] Ãö©ó¸ê®Æ¼g¤JÀx¦s®æªº¤è¦¡

[µo°Ý] Ãö©ó¸ê®Æ¼g¤JÀx¦s®æªº¤è¦¡


¤p§Ì·Q¦b¤½¥qªºEXCELÀɮ׸̥[¤J­Ó¤H¿W¥ß±b±Kµn¤J¤è¦¡
¥Ø«e¬O¨Cµn¤J¤@¦¸,·|¼g¤J¤@µ§¸ê®Æ
¤Ï¤§¬Oµn¤J¿ù»~¤]·|¼g¤J¸ê®Æ
¤p§Ì¥Ø«e¹J¨ìªº°ÝÃD¬O µn¤J¿ù»~µLªk¸ò¥¿½Tµn¤J¤@¼Ë «ùÄò©¹¤U¤@¦C¼g¤J¸ê®Æ
¦Ó¬O¦b¦P¤@Àx¦s®æ¸ÌÂл\­ì¦³¸ê®Æ
¯à§_½Ð¦U¦ì°ª¤âÀ°¤p§Ì¸Ñ´b©O???

Book2.rar (332.64 KB)

¥i¥H¶Kµ{¦¡½X¶Ü¡HµLªk¤U¸üÀÉ®×

TOP

³Â·Ð¦U¦ì°ª¤âÀ°¦£¤F,¬õ¦â³¡¥÷¬O¤p§Ì·Q­n¼W¥[§PÂ_¼g¤JÀx¦s®æªº¦a¤è


Private Sub CommandButton1_Click()
Sheet2.Visible = True
Sheets("¥æ±µ¨Æ¶µ").Activate
Dim UserId As String
Dim N As Long
Dim FD As Range
Set FD = Range("a65536").End(xlUp).Offset(1, 0)
Dim Ar, a1, i% '¦¹³B«Å§i3­ÓÄæ¦ì
a1 = TextBox1
Ar = Array(a1)  'Äæ¦ìÀx¦s©ó°}¦C
UserId = TextBox1.Value
If UserId = "" Then
  MsgBox "½Ð¿é¤JID"
  GoTo 101
  End If
For N = 1 To 300
  
   If Sheet3.Cells(N, 5).Value = UserId Then
            If Sheet3.Cells(N, 6).Value = TextBox2.Value Then
            MsgBox "µn¤J¦¨¥\"
if a1 <> "" Then  '§PÂ_©Ò¦³­È³£¤£µ¥©óªÅ¥Õ
       i = 2   '²Ä¤@¦C¶}©l
       Do Until Cells(i, 1) = ""  'AÄ欰ªÅ¥Õ«h°±¤î°j°é
       i = i + 1  '¦V¤U¤@¦C
       Loop
       Cells(i, 3).Resize(, 1) = Ar  'AÄæªÅ¥Õ¦V¥kÂX®i¦¨Äæ¦ì¼Æ¶q

FD = Date  '©¹¥k¤@®æ¼g¤J·í«e®É¶¡
FD.Offset(0, 1) = Time '©¹¥k¤G®æ¼g¤JtxtIDªº¸ê®Æ

    End If
            UserForm1.Hide
            GoTo 101
            Else
   MsgBox "µn¤J¥¢±Ñ"

       i = 2   '²Ä¤@¦C¶}©l
       Do Until Cells(i, 1) = ""  'AÄ欰ªÅ¥Õ«h°±¤î°j°é
       i = i + 1  '¦V¤U¤@¦C
       Loop
       Cells(i, 10).Resize(, 1) = Ar  'AÄæªÅ¥Õ¦V¥kÂX®i¦¨Äæ¦ì¼Æ¶q

FD.Offset(0, 8) = Date '©¹¥k¤@®æ¼g¤J·í«e®É¶¡
FD.Offset(0, 9) = Time '©¹¥k¤G®æ¼g¤JtxtIDªº¸ê®Æ


    End If
        
            GoTo 101
            Exit For
            End If
  end if   
  Next
GoTo 100

100
MsgBox "±b¸¹¿ù»~"
'GoTo 1100 '¬°²Î­pµn¤J¥¿½T©Î±j¨îµn¤J°O¿ý,¬Gµn¤J¿ù»~¤]¦C¤J¸ê®Æ
UserForm1.TextBox2.Value = ""
UserForm1.TextBox1.Value = ""
'Sheets("sheet1").Activate '°±¯d¦bµn¤J­¶­±ÁקK¶]¨ì±b±K­¶­±
Exit Sub

101
UserForm1.Hide

UserForm1.TextBox1.Value = ""
UserForm1.TextBox2.Value = ""

'Sheets("sheet1").Activate '°±¯d¦bµn¤J­¶­±ÁקK¶]¨ì±b±K­¶­±

End Sub

Private Sub CommandButton2_Click()
UserForm1.Hide
UserForm1.TextBox1.Value = ""
UserForm1.TextBox2.Value = ""
End Sub

TOP

Private Sub CommandButton1_Click()
Dim PassWD, xE1 As Range, xE2 As Range, T$
If TextBox1 = "" Then MsgBox "½Ð¿é¤JID": Exit Sub
If TextBox2 = "" Then MsgBox "½Ð¿é¤J±K½X": Exit Sub
¡@
Set xE1 = [¥æ±µ¨Æ¶µ!A65536].End(xlUp)(2)
Set xE2 = [¥æ±µ¨Æ¶µ!I65536].End(xlUp)(2)
¡@
PassWD = Application.VLookup(TextBox1, [Sheet3!E:F], 2, 0)
If IsError(PassWD) Then T = "ID¿ù»~"
If T = "" Then If PassWD & "" <> TextBox2.Text Then T = "±K½X¿ù»~"
If T <> "" Then
¡@¡@xE2.Resize(1, 4) = Array(Date, Time, TextBox1, T):  MsgBox T: GoTo 999
End If
¡@
xE1.Resize(1, 3) = Array(Date, Time, TextBox1): MsgBox "µn¤J¦¨¥\"
¡@
999:
If xE1.Row > 4500 Or xE2.Row > 4500 Then MsgBox "°O¿ý¶q¹L¤j¡A½Ð²M²z°O¿ý¡I"
End Sub
¡@

¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×¡×
TextBox2 ªº¡eÄÝ©Ê¡DPasswordChar¡f³]¬° "*"¡A¦r³]¡e¶Â¦â¡f¡A
¿é¤J±K½X®É¡A¦Û°ÊÅã¥Ü¬°¡e****¡f

TOP

¦^´_ 4# ­ã´£³¡ªL


­ã¤jªºµ{¦¡½X Åý¤p§Ì§Ú³o¦ìªì¾ÇªÌ Àò¯q¨}¦h

¨S·Q¨ì§Ú¨º¤@©ì©Ô®wªºµ{¦¡½X¥i¥HÁY´î¨º»ò¦h ·PÁ­ã¤j

¾Ç²ß¤F:)

TOP

        ÀR«ä¦Û¦b : ¡i®É¶¡µLªk¾B¾×¡j©È®É¶¡®ø³u¡Aªá¤F³\¦h¤ß¦å¡A·QºÉ¦U¦¡¤èªk­n¾B¾×®É¶¡¡Aµ²ªG¬O¡G®ö¶O¤F§ó¦h®É¶¡¡A¥B¤@µL©Ò¦¨¡I
ªð¦^¦Cªí ¤W¤@¥DÃD