PC Review


Reply
Thread Tools Rate Thread

How to display Excel 2002+ "Find & Replace" dialog via VBA

 
 
Majorstratdude@gmail.com
Guest
Posts: n/a
 
      23rd Oct 2007
Using VBA, one can display most if not all of Excel's builtin
dialogs,
using code such as:

application,dialogs(xlDialogFormulaReplace).show


The object browser shows the enum for the constants (such as
xlDialogFormulaReplace in the example above). However, I cant find
such a constant for the new single box "Find & Replace" dialog
introduced in Excel 2002 and beyond and described in KB288291. Any
ideas on how to display this puppy?


Major

 
Reply With Quote
 
 
 
 
=?Utf-8?B?S2Fzc2ll?=
Guest
Posts: n/a
 
      23rd Oct 2007
Cells.Replace What:="<your criteria>", Replacement:="<Your criteria>",
LookAt:=xlPart, SearchOrder _
:=xlByRows, MatchCase:=False, SearchFormat:=False,
ReplaceFormat:=False

works for me.

--
Hth

Kassie Kasselman
Change xxx to hotmail


"(E-Mail Removed)" wrote:

> Using VBA, one can display most if not all of Excel's builtin
> dialogs,
> using code such as:
>
> application,dialogs(xlDialogFormulaReplace).show
>
>
> The object browser shows the enum for the constants (such as
> xlDialogFormulaReplace in the example above). However, I cant find
> such a constant for the new single box "Find & Replace" dialog
> introduced in Excel 2002 and beyond and described in KB288291. Any
> ideas on how to display this puppy?
>
>
> Major
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Edit|find and replace" dialog disappear Zhuo Li Microsoft C# .NET 1 20th Dec 2007 08:52 PM
how to get vba to display excel 2002+ "Find & Replace" dialog Majorstratdude@gmail.com Microsoft Excel Programming 4 23rd Oct 2007 05:01 PM
In WORD 2003: Selecting "Edit/Find" doesn't display dialog box =?Utf-8?B?Sm9obiBNZW1icmlubw==?= Microsoft Word Document Management 3 21st Nov 2006 03:09 AM
Replace dialog should put focus on "Find What" not "Replace With" =?Utf-8?B?TWljaGFlbCBXaWxsaWFtcw==?= Microsoft Excel Misc 0 24th May 2006 12:45 PM
VBA code to display the "Find" (Ctrl+F) dialog box lothario Microsoft Excel Programming 2 17th Oct 2003 10:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:30 PM.