von Gadelgallegen
14-12-2011 01:19:19
Pessoal, qual é a rotina para copiar um dado de um textbox para uma planilha?
von Gadelgallegen
14-12-2011 01:19:19
Mauro Coutinho
14-12-2011 13:29:17
Código: Selecionar todos
Range("A1").Value = TextBox1.Value
von Gadelgallegen
14-12-2011 23:08:13
joseA
15-12-2011 01:07:12
Código: Selecionar todos
Private Sub CommandButton1_Click()
Dim linha As Integer
linha = Plan1.Range("A65536").End(xlUp).Offset(1, 0).Row
Plan1.Range("A" & linha).Value = TextBox1
Plan1.Range("B" & linha).Value = TextBox2.Text
Plan1.Range("C" & linha).Value = TextBox3.Text
MsgBox "Cadastrado com sucesso...", 64, "Dados"
Me.TextBox1 = ""
Me.TextBox2 = ""
Me.TextBox3 = ""
End Sub
lima.luiz
13-02-2019 17:53:56