Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Excel-Active X Combobox, Selecting Sheets

$
0
0
Hi,
Am a newbie in trying to automate Excel.
I have a workbook with 50 worksheets and a menu sheet.
On the menu sheet I created an Actixe X combobox filling it
with the fifty sheets.
I wish to be able to select from the combo box to go to a
particular sheet. I am using the following code which works fine
if I select and click but when I enter an alphabet it goes direct
to the first sheet with which the alphabet starts rather then giving
me any options to select.

Private Sub ComboBox1_Click()
If Me.ComboBox1.Value <> "" Then Sheets(Me.ComboBox1.Value).Activate
ComboBox1.Value = ""
End Sub






Please note I have posted this on another blog.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>