Escolar Documentos
Profissional Documentos
Cultura Documentos
Selecione o controle Imagem;
Arraste-o e dimensione-o na planilha Plan1 e a seguir clique na
opção Propriedades para exibir a janela de Propriedades;
Assim que o usuário realizar a autenticação, se ela for bem sucedida iremos
gravar as essas informações na planilha Plan4.
Private Sub
cmdEntrar_Click()
If txtLogin = "" Then
MsgBox "Digite o
nome do usuário !"
Exit Sub
txtLogin.SetFocus
Else
If txtSenha = ""
Then
MsgBox "Digite
a senha do usuário !"
Exit Sub
txtSenha.SetFocus
End If
End If
col = 1
lin = 2
While
(Plan2.Cells(lin, col) <>
txtLogin)
lin = lin + 1
If lin > 50 Then
MsgBox
"Usuário não esta
cadastrado"
Exit Sub
End If
Wend
Sheets("Plan1").Activate
ActiveWindow.DisplayWor
kbookTabs = False
Hide
End If
End Sub
Private Sub
cmdCancelar_Click
()
Application.Display
Alerts = False
ActiveWorkbook.Sa
ve
Application.Quit
End Sub
Private Sub
UserForm_Termi
nate()
Application.Displ
ayAlerts = False
ActiveWorkbook.
Save
Application.Quit
End Sub
Quer aprender C# ??