-
January 31st, 2013, 08:27 AM
#1
Excel Search
I am trying to create a spreadsheet for work and they require it to have a search function exactly like Ctrl & F that sits within the worksheet. Is there a way I can do this?
They do not want to use Ctrl & F as it is for their staff so it requires a user interface similar to a webpage but cannot be accessed externally.
Not sure if I am writing in the correct place but can anyone help?
Thanks
-
January 31st, 2013, 05:29 PM
#2
Re: Excel Search
What do you mean by "sits within the worksheet"? Some sort of button embedded in the sheet that the user can click and then launches the search dialog?
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
-
February 1st, 2013, 06:53 AM
#3
Re: Excel Search
Yes, a search box in a cell for the user to type in with a button next to it thats launches the search
Is this possible?
Thanks
-
February 1st, 2013, 09:21 AM
#4
Re: Excel Search
Sure it's possible. 
First you need a VBA macro that picks up the search term from the worksheet cell you chose for that purpose and initiates the search. For the search funtionality, the help page for the Range.Find method probably is the best place to start. You can use the Controls tool box to place a command button on your worksheet and connect that to the existing macro. (The Forms tool bar provides a command button to put on a worksheet too, but I think the one from the Controls tool bar is a bit easier to handle.)
Controlling Excel's search functionality from VBA can be rather tricky and you may need to do some stepwise refinement on your macro until you get what you want.
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
-
February 1st, 2013, 09:19 PM
#5
Re: Excel Search
Sorry I am a bit of a newbie and this is like a foreign language. could you explain a bit more please?
-
February 2nd, 2013, 12:09 PM
#6
Re: Excel Search
Last edited by Eri523; February 2nd, 2013 at 12:19 PM.
Reason: Removed a forgotten piece of debugging code from the code and uploaded updated ZIP
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|