Data Valadation to find worksheets?

smithomatic

New Member
Joined
Jun 4, 2011
Messages
9
Hello!

I was wandering if anyone can help me.

I am in need of a way to search for a worksheet in an excel workbook when the "sheets tab" at the bottom is hidden (by me, i dont want anyone else to move sheets around).

I was thinking there might be a way to do this with data valadation, perhaps using a list and a cell next to the list with =hyperlink function.

Or possibly some kind of Lookup macrod to a button so I can perform the lookup and pull the page to the front.

Any other ways please do say! all help much appreciated.

(i dont want to have to right click the arrows on page one to choose a worksheet to go to as this toolbar will be hidden.)



Many thanks!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
A UDF in a standard module

Code:
Function WorksheetExists(WSName As String) As Boolean
On Error Resume Next
WorksheetExists = Worksheets(WSName).Name = WSName
On Error GoTo 0
End Function

To use

=worksheetexists("Sheet12")
 
Upvote 0
Thank you for your rapid response! Unfortunatly, although I have basic skills on Excel im not an expert when it comes to code, would it be possible for you to post an example file for me to disect? I think this will better help me learn how youir suggestion works.


Many thanks

Josh!
 
Upvote 0
Press ALT + F11 to open the Visual Basic Editor, select Module from the Insert menu and paste the code into the white space on the right. Press ALT + Q to close the window.

On your sheet you can then use for example

=worksheetexists("Sheet3")
 
Upvote 0
Hi Peter,

All im getting is a cell that responds "false" no matter where I use your code? How do I use this to find a worksheet?

many thanks

Josh :)
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,278
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top