Home |
Search |
Today's Posts |
|
#1
|
|||
|
|||
create msg box
Hi,
Can anybody offer some code (as I'm new to this) to alow the user to input a name into a msg box and then search and display the corrct worksheet with that name. I thank you! |
#2
|
|||
|
|||
Anthony
one way: Sub ActivateSheet() Dim sSheetName As String sSheetName = InputBox("Input Sheet Name", "Sheet Name", "Sheet1") If sSheetName = "" Then Exit Sub On Error Resume Next Sheets(sSheetName).Select On Error GoTo 0 End Sub Regards Trevor "Anthony" wrote in message ... Hi, Can anybody offer some code (as I'm new to this) to alow the user to input a name into a msg box and then search and display the corrct worksheet with that name. I thank you! |
#3
|
|||
|
|||
thanks Trevor - I'll give that a try
"Trevor Shuttleworth" wrote: Anthony one way: Sub ActivateSheet() Dim sSheetName As String sSheetName = InputBox("Input Sheet Name", "Sheet Name", "Sheet1") If sSheetName = "" Then Exit Sub On Error Resume Next Sheets(sSheetName).Select On Error GoTo 0 End Sub Regards Trevor "Anthony" wrote in message ... Hi, Can anybody offer some code (as I'm new to this) to alow the user to input a name into a msg box and then search and display the corrct worksheet with that name. I thank you! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to create a Pivot table from text file with more than 65000 rows? | Excel Discussion (Misc queries) | |||
Can't create dynamic charts | Charts and Charting in Excel | |||
Template in Excel | New Users to Excel | |||
GETPIVOTDATA to create Purchase in specified month | Excel Worksheet Functions | |||
trying to create | Excel Discussion (Misc queries) |