Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Create a search Field within a worksheet to search command buttons

I have a Workbook created with a page I refer to as the Table of Contents.
Within this page I have approx. 75 different Command Buttons that redirect to
a worksheet within the workbook. Can anyone tell me how to create a Search
field on this page that will locate and redirect the user to that command
button on the page.
Thank you for your help
Ed
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Create a search Field within a worksheet to search command buttons

Possibly:

Dim sh as Worksheet, oleObj as OleObject
SearchString = InputBox("Enter Sheet Name")
if SearchString = "" then exit sub
on Error Resume Next
set sh = Worksheets("SearchString")
On Error goto 0
if sh is nothing then
msgbox "No such sheet"
exit sub
End if

for each oleobj in activesheet.OleObject
if type of oleobj is MSForms.Commandbutton then
if oleObj.Caption = SearchString then
oleObj.Activate
exit for
end if
end if
Next



--
Regards,
Tom Ogilvy


"Ed P" wrote in message
...
I have a Workbook created with a page I refer to as the Table of Contents.
Within this page I have approx. 75 different Command Buttons that redirect

to
a worksheet within the workbook. Can anyone tell me how to create a Search
field on this page that will locate and redirect the user to that command
button on the page.
Thank you for your help
Ed



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
File Search command 2008 Fawn[_3_] Excel Worksheet Functions 3 April 6th 08 09:01 PM
Create a search feature in a worksheet Wildfire7 Links and Linking in Excel 1 March 4th 08 01:08 AM
Search field? philnad Excel Discussion (Misc queries) 1 March 30th 06 07:11 PM
search or goto command needed. mightymax Excel Programming 1 July 26th 04 03:42 AM
Command button to search column Al[_7_] Excel Programming 2 September 9th 03 02:15 PM


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

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"