#1   Report Post  
Anthony
 
Posts: n/a
Default 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   Report Post  
Trevor Shuttleworth
 
Posts: n/a
Default

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   Report Post  
Anthony
 
Posts: n/a
Default

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
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
How to create a Pivot table from text file with more than 65000 rows? morchard Excel Discussion (Misc queries) 0 June 29th 05 08:50 PM
Can't create dynamic charts Brian Sells Charts and Charting in Excel 7 March 22nd 05 04:23 AM
Template in Excel prettytwin1 New Users to Excel 1 March 9th 05 09:22 PM
GETPIVOTDATA to create Purchase in specified month Andri Excel Worksheet Functions 5 February 20th 05 03:43 PM
trying to create Lost in reconcillation Excel Discussion (Misc queries) 2 December 19th 04 01:05 AM


All times are GMT +1. The time now is 12:10 AM.

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

About Us

"It's about Microsoft Excel"