Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 91
Default Programming the Find Dialog Box

Is is possible to pragrammicably set
the 'Match entire cell contents' and
'Look in:' values?

Thanks - Kirk
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 417
Default Programming the Find Dialog Box

Try this code:

Sub FindExample()
Cells.Find What:="", LookIn:=xlValues, LookAt:=xlWhole
Application.Dialogs(xlDialogFormulaFind).Show
End Sub

The first line in the subroutine sets up the Find method, but doesn't
actually find anything. You might want to save the active cell before
calling the Find method, then activate that cell again after the Find
method, to insure that the active cell doesn't move after the Find
method.
The next line of code actually displays the dialog box, which then uses
(reuses) the parameters from the previous call.

From the Help topic for the Find Method:

"The settings for LookIn, LookAt, SearchOrder, and MatchByte are saved
each time you use this method. If you don't specify values for these
arguments the next time you call the method, the saved values are used.
Setting these arguments changes the settings in the Find dialog box, and
changing the settings in the Find dialog box changes the saved values
that are used if you omit the arguments. To avoid problems, set these
arguments explicitly each time you use this method."

Also see the "Dialogs Collection Object" topic in Help.
--
Regards,
Bill Renaud



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
Find Programming Job? Cindy Excel Programming 0 April 10th 07 12:43 AM
How to pen the Find dialog box with a macro jonco Excel Programming 2 February 23rd 07 03:38 AM
Programming a worksheet to find last row and add formula's rjr Excel Programming 14 December 26th 06 11:20 AM
Find Dialog Box Elaine Excel Discussion (Misc queries) 5 June 22nd 06 08:03 AM
Find dialog Box Steved Setting up and Configuration of Excel 2 March 17th 05 02:08 AM


All times are GMT +1. The time now is 12:20 AM.

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"