ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Shortcut to find sheets (https://www.excelbanter.com/excel-discussion-misc-queries/148557-shortcut-find-sheets.html)

FC

Shortcut to find sheets
 
I have a lot of worksheets by names and as I have to go back and forth never
ocurred to me that may be a way to use a shortcut to find the one I need
instead of scrolling all over. Is there a way ?
Also up to how many sheets can I have in one workbook.
Excel 2003. TX.

FSt1

Shortcut to find sheets
 
hi,
one way. right click the sheet navigator at the lower left of the xl window.
this will produce a pop up listing all the sheet names.
in xl help type the word specifications.
number of sheets in a workbook - limited by available memory.

Regards
FSt1

"FC" wrote:

I have a lot of worksheets by names and as I have to go back and forth never
ocurred to me that may be a way to use a shortcut to find the one I need
instead of scrolling all over. Is there a way ?
Also up to how many sheets can I have in one workbook.
Excel 2003. TX.


FC

Shortcut to find sheets
 
Thank you, keep the good work, appreciate it.

"FSt1" wrote:

hi,
one way. right click the sheet navigator at the lower left of the xl window.
this will produce a pop up listing all the sheet names.
in xl help type the word specifications.
number of sheets in a workbook - limited by available memory.

Regards
FSt1

"FC" wrote:

I have a lot of worksheets by names and as I have to go back and forth never
ocurred to me that may be a way to use a shortcut to find the one I need
instead of scrolling all over. Is there a way ?
Also up to how many sheets can I have in one workbook.
Excel 2003. TX.


JLatham

Shortcut to find sheets
 
There are only two shortcuts for sheet navigating:
Excel Help: Keyboard Shortcuts
Move to next sheet: [Ctrl]+[Page Down]
Move to previous sheet: [Ctrl]+ [Page Up]

Other than that, using the method Fst1 gave you is the easiest, non-coding
way to go. That can end up being a 2 or 3 step process once the number of
sheets becomes larger than can be held in the basic popup window you get when
you right-click the navigator (you get option to list them all in yet another
window).

You could code up a userform with a combobox that would list all of the
sheets in the book and add a button to the menu bar to call a routine to open
that userform on demand. Then you'd select the desired sheet from the
combobox's list.

Code for the pieces would look something like this (from one I tossed
together using default names)

This goes into a regular module and would be the macro you assigned to the
added button in a toolbar:
Sub ShowQuickNav()
UserForm1.Show
End Sub

Here's code for the two controls on the userform (1 combo box, 1 command
button to close without changing sheets)

Private Sub UserForm_Initialize()
Dim WS As Worksheet
For Each WS In Worksheets
ComboBox1.AddItem WS.Name
Next
End Sub

Private Sub ComboBox1_Change()
If ComboBox1.Text = "" Then
Exit Sub
End If
Worksheets(ComboBox1.Text).Activate
Unload Me
End Sub

Private Sub CommandButton1_Click()
Unload Me
End Sub




"FC" wrote:

I have a lot of worksheets by names and as I have to go back and forth never
ocurred to me that may be a way to use a shortcut to find the one I need
instead of scrolling all over. Is there a way ?
Also up to how many sheets can I have in one workbook.
Excel 2003. TX.


FC

Shortcut to find sheets
 
Thanks for the macro , I will be using it when I get close to 100
sheets,maybe in a couple months. Thanks for all the important information too.
Thanks a lot for your help. Take care.

"JLatham" wrote:

There are only two shortcuts for sheet navigating:
Excel Help: Keyboard Shortcuts
Move to next sheet: [Ctrl]+[Page Down]
Move to previous sheet: [Ctrl]+ [Page Up]

Other than that, using the method Fst1 gave you is the easiest, non-coding
way to go. That can end up being a 2 or 3 step process once the number of
sheets becomes larger than can be held in the basic popup window you get when
you right-click the navigator (you get option to list them all in yet another
window).

You could code up a userform with a combobox that would list all of the
sheets in the book and add a button to the menu bar to call a routine to open
that userform on demand. Then you'd select the desired sheet from the
combobox's list.

Code for the pieces would look something like this (from one I tossed
together using default names)

This goes into a regular module and would be the macro you assigned to the
added button in a toolbar:
Sub ShowQuickNav()
UserForm1.Show
End Sub

Here's code for the two controls on the userform (1 combo box, 1 command
button to close without changing sheets)

Private Sub UserForm_Initialize()
Dim WS As Worksheet
For Each WS In Worksheets
ComboBox1.AddItem WS.Name
Next
End Sub

Private Sub ComboBox1_Change()
If ComboBox1.Text = "" Then
Exit Sub
End If
Worksheets(ComboBox1.Text).Activate
Unload Me
End Sub

Private Sub CommandButton1_Click()
Unload Me
End Sub




"FC" wrote:

I have a lot of worksheets by names and as I have to go back and forth never
ocurred to me that may be a way to use a shortcut to find the one I need
instead of scrolling all over. Is there a way ?
Also up to how many sheets can I have in one workbook.
Excel 2003. TX.


opieandy

Exclude Worksheets from Combo Box?
 
Hi,

The following code was very helpful. Is there any way to exclude certain
Worksheets from being in the Combo Box?


Private Sub UserForm_Initialize()
Dim WS As Worksheet
For Each WS In Worksheets
ComboBox1.AddItem WS.Name
Next
End Sub

Private Sub ComboBox1_Change()
If ComboBox1.Text = "" Then
Exit Sub
End If
Worksheets(ComboBox1.Text).Activate
Unload Me
End Sub


Daniel.C[_3_]

Exclude Worksheets from Combo Box?
 
Hi.
Try :

Private Sub UserForm_Initialize()
Dim WS As Worksheet, Exclusion
Exclusion = Array("Sheet1", "Sheet2")
For Each WS In Worksheets
If Not IsNumeric(Application.Match(WS.Name, Exclusion, 0)) Then
ComboBox1.AddItem WS.Name
End If
Next
End Sub

Regards.
Daniel

Hi,

The following code was very helpful. Is there any way to exclude certain
Worksheets from being in the Combo Box?


Private Sub UserForm_Initialize()
Dim WS As Worksheet
For Each WS In Worksheets
ComboBox1.AddItem WS.Name
Next
End Sub

Private Sub ComboBox1_Change()
If ComboBox1.Text = "" Then
Exit Sub
End If
Worksheets(ComboBox1.Text).Activate
Unload Me
End Sub





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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com