Solved

VBA and Excel Sheet Tabs

Posted on 2012-04-13
6
221 Views
Last Modified: 2012-06-22
I have a huge spreadsheet that has a ton of sheet tabs.  Has anyone written a userform that would place all these sheet tabs in numeric order, so I could begin typing the first few numbers of the sheet tab and it would sort the list down as I get to the forth or fifth character it would be there to select?

Of course after selecting it, it would goto that sheet and home the cursor to A1?  I have seen these before but did not have a use.. go figure now I have a need.

Please advise and thanks. -R-
0
Comment
Question by:RWayneH
  • 3
  • 2
6 Comments
 
LVL 18

Accepted Solution

by:
krishnakrkc earned 250 total points
ID: 37842071
Hi,

PFA.

Kris
GotoSheet.xlsm
0
 
LVL 33

Assisted Solution

by:Norie
Norie earned 250 total points
ID: 37842769
You don't need to sort the sheets you can just list the sheets in a combobox and type the name.

As you type you'll see the combobox sort of 'autocomplete the sheet name.

Once you have the one you want press a command button.
UFGotoSheet.xlsm
0
 

Author Comment

by:RWayneH
ID: 37842851
THANKS!!  I like the first userform example, because it allow you to see the different sheet as you are typing them in.  It would be nice if when I press enter that it goes to the sheet instead on having to use the mouse..  -R-
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 33

Expert Comment

by:Norie
ID: 37842903
You can do that by setting the Default value of the command button to True.

Kris

When I tried your workbook the combobox seemed to get 'stuck' sometimes.
0
 

Author Comment

by:RWayneH
ID: 37842920
I noticed that too, but it appeared to get stuck only when you have reached a sheet tab name limit..  and you begin typing in a invalid sheet name..  Now I am liking the second example.

heck, I like them both.  Thanks for the two examples!!  -R-
0
 

Author Closing Comment

by:RWayneH
ID: 37842928
Thanks for the help!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Sql server Transfering records getting error #NAME? 6 39
location range 4 22
macro for same location path 2 19
Most Consistent Performer 4 21
Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now