• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Set Default Find Within : Workbook

Debraj

Excel Ninja
Hi Folks,


Can anyone have any Tweak or RegEdit to set Default Find > Option > Within > Workbook..


I mean.. is there any option to

Code:
set Application.Find("Something", LookAt:=
xlWhole) .. as default for my system..


Its really annoying to set Search Within Workbook everytime.. When I know.. setting Search Within Workbook.. I can handle if active sheets changes..


Regards,

Deb
 
Hi Deb,

I'd ditto your question, I've been searching for several years for a way to programatically do a
Code:
Find
on the whole workbook. It appears to not have an actual method. =(


One workaround I would suggest is to setup a custom sub in your Personal.xls workbook scripted to take a workbook and then loop through all worksheets searching for input value. Then map it to the keyboard shortcut of Ctrl+f or perhaps, Ctrl+Shift+f
 
Findall addin should do this....you can assign a shortcut through ribbons if required...


http://www.cpearson.com/Excel/findallxla.aspx


The code is password protected.
 
oops.. i missed to announce the result.. Sorry..


Personal.XLSB > This Workbook >

[pre]
Code:
Private Sub Workbook_Open()
Application.CommandBars.FindControl(ID:=1849).Execute
SendKeys "%(t)%(h)W~{ESC}"
End Sub
[/pre]

Regards,

Deb


EDIT: applicable in Excel 2007 and prior..
 
Hi, Debraj Roy!

Well deserved in this case. I guess that as usual, I wouldn't like to appear as an easy flattering.

Regards!
 
Back
Top