استاذيي الفاضل هانكوك 
الله يحيمك لاتنسى اذكار بعد الصلاة 
والمعوذات وقاية من العين 
والبنسبه للكود عملت عليه 
تعديل بسيط على الكود وزبط معاي 
عمل اخفاء تام لاوراق مستخدم اليوز 
لاجل عدم القدرة على اظهار الاوراق المخفيه 
 
Private Sub CommandButton1_Click()
If ComboBox1.Text = "admin" And serialtext = shtMain.Range("az1") Then
TextBox2 = Now()
 ff = 4
    Do Until Sheet4.Cells(ff, "a").Value = ""
        ff = ff + 1
    Loop
   Sheet4.Cells(ff, 1).Value = ComboBox1.Text
   Sheet4.Cells(ff, 2).Value = TextBox2.Text
    Me.Hide
    serialtext = ""
    TextBox2 = ""
    ComboBox1.SetFocus
    Worksheets(1).Visible = True
    Worksheets(2).Visible = True
    Worksheets(3).Visible = True
    Worksheets(4).Visible = True
    Worksheets(5).Visible = True
    Worksheets(6).Visible = True
shtMain.Activate
Else
If ComboBox1.Text = "user" And serialtext = shtMain.Range("aY1") Then
TextBox2 = Now()
 ff = 4
    Do Until Sheet4.Cells(ff, "a").Value = ""
        ff = ff + 1
    Loop
   Sheet4.Cells(ff, 1).Value = ComboBox1.Text
   Sheet4.Cells(ff, 2).Value = serialtext.Text
    Me.Hide
    TextBox1 = ""
    TextBox2 = ""
    ComboBox1.SetFocus
'======================================
    Sheet4.Visible = xlVeryHidden
    Sheet6.Visible = xlVeryHidden
    shtShhada.Visible = xlVeryHidden
    ورقة1.Visible = xlVeryHidden
    ورقة2.Visible = xlVeryHidden
    ورقة3.Visible = xlVeryHidden
'======================================
shtMain.Activate
Else
    serialtext = ""
    TextBox2 = ""
Unload Me
ErrorForm.Show
serialtext = ""
    serialtext.SetFocus
If ComboBox1.Text = "admin" And serialtext = shtMain.Range("az1") Then
TextBox2 = Now()
 ff = 4
    Do Until Sheet6.Cells(ff, "a").Value = ""
        ff = ff + 1
    Loop
   Sheet6.Cells(ff, 1).Value = ComboBox1.Text
   Sheet6.Cells(ff, 2).Value = TextBox2.Text
    TextBox1 = ""
    TextBox2 = ""
    ComboBox1.SetFocus
Else
If ComboBox1.Text = "user" And serialtext = shtMain.Range("aY1") Then
TextBox2 = Now()
 ff = 4
    Do Until Sheet6.Cells(ff, "a").Value = ""
        ff = ff + 1
    Loop
   Sheet6.Cells(ff, 1).Value = ComboBox1.Text
   Sheet6.Cells(ff, 2).Value = TextBox2.Text
    serialtext = ""
     TextBox2 = ""
    ComboBox1.SetFocus
End If
End If
End If
End If
ActiveWorkbook.Save
shtMain.Activate
Application.Visible = True
End Sub