Sie sind auf Seite 1von 1

Private Sub bt_cadastrar_Click()

linha = Sheets("BASE").Cells(Rows.Count, "1").End(xlUp).Offset(1, 0).row

Plan1.Cells(linha, 1).Value = Me.txt_Nome.Value

Plan1.Cells(linha, 2).Value = Me.txt_Sobrenome.Value

Plan1.Cells(linha, 3).Value = Me.txt_Email.Value

Me.txt_Nome.Value = ""

Me.txt_Sobrenome.Value = ""

Me.txt_Email.Value = ""

registro = Sheets("BASE").Cells(Rows.Count, "1").End(xlUp).Offset(1, 0).Row - 2

lbl_registro.Caption = registro

mensagem = MsgBox("Dados cadastrados com sucesso", vbInformation, ":: Cadastro::")

End Sub

Das könnte Ihnen auch gefallen