Hi guys,
I have a combobox (COMBOBOX1) on each of three different worksheets ("Tab1", "Tab2", "Tab3"). Each combobox is populated by the same code. However, in my current settings I have the same code written three times in the "ThisWorkbook" variable. For example:
This adds to the sluggishness of my workbook. Is there a way to combine my code to affect all three comboboxes at the same time?
Thanks,
I have a combobox (COMBOBOX1) on each of three different worksheets ("Tab1", "Tab2", "Tab3"). Each combobox is populated by the same code. However, in my current settings I have the same code written three times in the "ThisWorkbook" variable. For example:
Code:
Private Sub Workbook_Open()
With ThisWorkbook.Sheets("Tab1").ComboBox1
'[MY IDENTICAL CODE]
End With
With ThisWorkbook.Sheets("Tab2").ComboBox1
'[MY IDENTICAL CODE]
End With
With ThisWorkbook.Sheets("Tab3").ComboBox1
'[MY IDENTICAL CODE]
End With
This adds to the sluggishness of my workbook. Is there a way to combine my code to affect all three comboboxes at the same time?
Thanks,