I'm new programming at vba and I can't understand what's the difference between an actived cell and a selected cell.
I'm making a very simple example I found on internet about press a button and add the values of certain lines.
This is my example:
When I press the button that says "Rellenar" I want the information about countries goes to dropdown menu.
I made this:
Private Sub CommandButton4_Click()
Range("k6").Activate
Do While Not IsEmpty(ActiveCell)
micombo.AddItem ActiveCell.Value
ActiveCell.Offset(1, 0).Activate
Loop
End Sub
Where "k6" is the 1st cell where you can find information, but I tried to change the activate value to select value and the programm works exactly the same with both.
Can someone explain me the difference between both one?