code to bring up "find" box and set defaults

fry

Active Member
Joined
Apr 25, 2007
Messages
411
Hi All

Does anyone know this??

Instead of typing CTRL-F to popup the search box and then select "search the whole workbook" is there a way to code this so that the window pops up and the default is the whole workbook??

Many Thanks in advance :)
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
The code below will open the Find Dailog Box when executed on a Worksheet, namely "Sheet1" :

Code:
Option Explicit

Sub LaunchFindDialog()
      On Error GoTo Finish
      Sheets("Sheet1").Activate
      Application.CommandBars("Edit").Controls("Find...").Execute
Finish:
End Sub
 
Upvote 0
Thanks stormseed but I need it to open the find dialog box and in the options have workbook selected as opposed to worksheet.

I've also found this...
Code:
Application.Dialogs(xlDialogValueFind).Show

but I dont know if there are any options available????
 
Upvote 0
I would rather do that manually by pressing Ctrl+Shift+PgUp and PgDown and Ctrl+A and then execute the macro.

Well, I can't think of a code that would do this first and then pop the Find box...maybe one of the board members wud be able to help you.
 
Upvote 0
Well, this one might be the one that got away!!

I've been searching on the interweb and it has been suggested that modifying the "within" bit in the dialog box can't be done?!?!?

I'm stunned.....why would this one be the ONLY one you can't modify???

:)
 
Upvote 0

Forum statistics

Threads
1,214,655
Messages
6,120,760
Members
448,991
Latest member
Hanakoro

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