Starting a Macro based on a ComboBox Result

  • Thread starter Thread starter 1Matt1
  • Start date Start date
1

1Matt1

Hi,

I have a spreadsheet with a Combo Box that allows a user to selec
either a Percentage, Dollar or Volume view of a report. VLookups
Offsets are used so that the selected result is displayed in the sam
cells each time.

I need to reformat these cells to either Percentage/Currency or Numbe
depending on the combo box selection. I see a macro as the easiest wa
to do this.

How can I start a macro based on the result of the combo box?

Thanks!

Mat
 
Hi Matt

If you have combobox from the controltoolbox on your sheet then
put your code in the change event of the control.

Private Sub ComboBox1_Change()

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