You are on page 1of 3

Private Sub CMD_CANDIDATO1_Click()

Range("A3").Select

ActiveCell.Formula2R1C1 = ComboBox1

Range("b3").Select

ActiveCell.Formula2R1C1 = ComboBox2

Range("A3").Select

ActiveCell.Formula2R1C1 = "Candidato1"

ComboBox1 = " "

ComboBox2 = " "

Selection.EntireRow.Insert

End Sub

Private Sub CMD_CANDIDATO2_Click()

Range("A3").Select

ActiveCell.Formula2R1C1 = ComboBox1

Range("b3").Select

ActiveCell.Formula2R1C1 = ComboBox2

Range("A3").Select

ActiveCell.Formula2R1C1 = "Candidato2"

ComboBox1 = " "

ComboBox2 = " "

Selection.EntireRow.Insert

End Sub

Private Sub CMD_CANDIDATO3_Click()

Range("A3").Select

ActiveCell.Formula2R1C1 = ComboBox1

Range("b3").Select

ActiveCell.Formula2R1C1 = ComboBox2
Range("A3").Select

ActiveCell.Formula2R1C1 = "Candidato3"

ComboBox1 = " "

ComboBox2 = " "

Selection.EntireRow.Insert

End Sub

Private Sub CMD_CANDIDATO4_Click()

Range("A3").Select

ActiveCell.Formula2R1C1 = ComboBox1

Range("b3").Select

ActiveCell.Formula2R1C1 = ComboBox2

Range("A3").Select

ActiveCell.Formula2R1C1 = "Candidato4"

ComboBox1 = " "

ComboBox2 = " "

Selection.EntireRow.Insert

End Sub

Private Sub CMD_VBLANCO_Click()

Range("A3").Select

ActiveCell.Formula2R1C1 = ComboBox1

Range("b3").Select

ActiveCell.Formula2R1C1 = ComboBox2

Range("A3").Select

ActiveCell.Formula2R1C1 = "VBLANCO"

ComboBox1 = " "

ComboBox2 = " "

Selection.EntireRow.Insert
End Sub

You might also like