Skip to content

Instantly share code, notes, and snippets.

@tombrad
Created February 13, 2013 04:03
Show Gist options
  • Save tombrad/4942167 to your computer and use it in GitHub Desktop.
Save tombrad/4942167 to your computer and use it in GitHub Desktop.
Prototipos VBA-1
Private Sub CommandButton1_Click()
indice = Hoja1.Cells(1, 1)
If indice = "" Then
indice = 1
Hoja1.Cells(1, 1) = indice
End If
indice = indice + 1
Hoja1.Cells(1, 1) = indice
Hoja1.Cells(indice, 1) = TextBox1.Text
Hoja1.Cells(indice, 2) = TextBox2.Text
Hoja1.Cells(indice, 3) = TextBox3.Text
Hoja1.Cells(indice, 4) = TextBox4.Text
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox1.SetFocus
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment