Skip to content

Instantly share code, notes, and snippets.

@tombrad
Created February 13, 2013 04:18
Show Gist options
  • Save tombrad/4942229 to your computer and use it in GitHub Desktop.
Save tombrad/4942229 to your computer and use it in GitHub Desktop.
Prototipos VBA-3-8
Private Sub UserForm_Activate()
ComboBox1.AddItem "Haber"
ComboBox1.AddItem "Debe"
ComboBox1.Text = ComboBox1.List(1)
TextBox1.Text = Date
ComboBox2.SetFocus
If Hoja1.Cells(1, 1) <> "" Then
For z = 1 To 500
ComboBox2.AddItem Hoja1.Cells(z, 1)
Next z
Rem deja en blanco el combo
ComboBox2.Text = ""
End If
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment