combobox selection to change cell range data

  • Thread starter Thread starter ryan.fitzpatrick3
  • Start date Start date
R

ryan.fitzpatrick3

This is probably very easy, I have a combobox that has 1-10, I would
like it where whatever I select in that combobox, lets say 5, the
range P5:P28 gets populated with 5 all of the way down. Thanks.
 
Private Sub ComboBox1_Change()
With ComboBox1
If .ListIndex > -1 Then
Range("P5:P28") = .Value
End If
End With
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top