Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Go to a chosen worksheet

I am trying to create a simple index page as the first sheet in
workbook.

The book has over 20 worksheets in it. On sheet1 I would like to have
a dropdown (ComboBox) for people to select the worksheet that they
want to go to and then a control button for them to click which will
then take them to the selected worksheet.

Each worksheet is known as “sales” ,“stock” etc it is these names I
have put into the ComboBox, each worksheet has its known name quoted
in cell A4 ie “Sales” is sheet7 and in cell A4 of sheet7 there is the
word “Sales”. The same applies for all worksheets..

Is the above the best way to go with this where the name in the
ComboBox matches a known cell on each worksheet and by clicking on the
command button you go straight to that worksheet. (if so how) or is
there a better way to select and then go to a chosen worksheet.

With thanks

RJG
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Go to a chosen worksheet

In design mode double click the command button and paste the below 1 line code

Private Sub CommandButton1_Click()
Sheets(ComboBox1.Value).Activate
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Bob" wrote:

I am trying to create a simple index page as the first sheet in
workbook.

The book has over 20 worksheets in it. On sheet1 I would like to have
a dropdown (ComboBox) for people to select the worksheet that they
want to go to and then a control button for them to click which will
then take them to the selected worksheet.

Each worksheet is known as €śsales€ť ,€śstock€ť etc it is these names I
have put into the ComboBox, each worksheet has its known name quoted
in cell A4 ie €śSales€ť is sheet7 and in cell A4 of sheet7 there is the
word €śSales€ť. The same applies for all worksheets..

Is the above the best way to go with this where the name in the
ComboBox matches a known cell on each worksheet and by clicking on the
command button you go straight to that worksheet. (if so how) or is
there a better way to select and then go to a chosen worksheet.

With thanks

RJG

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gridlines have to be chosen each time jknapp1005 Excel Discussion (Misc queries) 1 July 10th 08 11:37 PM
Font different than one chosen Bruce Excel Discussion (Misc queries) 2 February 14th 07 03:04 PM
put a result into a chosen cell steph Excel Discussion (Misc queries) 1 May 6th 06 05:01 AM
How do I let only one box be chosen when there are several? alruslavage Excel Worksheet Functions 7 May 10th 05 04:09 PM
How do I make Excel worksheet tabs change appearance when chosen . fentrkn Excel Discussion (Misc queries) 1 March 14th 05 05:36 PM


All times are GMT +1. The time now is 04:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"