Go To Button on a spreadsheet.

B

Bob

I have the following code that i cannot get to work. In escence i
just
want to click on the button and go to the worksheet named in the
combobox. If i take the combobox away and just type a name into a
cell
say A4 it works fine. Obviously i am not referencing the Combobox
properly.

Private Sub CommandButton1_Click()
Worksheets(Range("ComboBox1").Value).Activate


End Sub


With thanks


Bob
 

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

Top