> The xlDialogSearch is an enum value used with Application.Dialogs to get
an
> dialog object.
xlDialogSearch is not a defined constant in any of my VBA libraries, does it
exit for you?
What do you get if you type
?xlDialogSearch
in the Immediate window (ctrl-g) and hit Enter, or if you search same in
Object browser (F2)
Regards,
Peter T
"pnp" <(E-Mail Removed)> wrote in message
news:56852B0F-638B-4CCD-A49D-(E-Mail Removed)...
> Hi Peter
>
> The xlDialogSearch is an enum value used with Application.Dialogs to get
an
> dialog object.
>
> dlg = Application.Dialogs(xlDialogSearch)
>
> The above gives me the search dialog object which i then can show to popup
> the dialog. I have a search/replace macro which can replace the text with
the
> .replace method. But I want an option to replace interactive, which should
> display the dialog as you would with normal search/replace, the values for
> match case, and keywords should just be filled out.
>
> And the arguments for the Dialog.Show method is just named arg1, arg2 ..,
> arg30 and I don't know which to use with what values.
>
> /Anders
>
> "Peter T" wrote:
>
> > Hi Anders,
> >
> > What is 'xlDialogSearch'
> >
> > Try the Find or Replace method, this is what the macro recorder gave me
with
> > Replace
> >
> > Cells.Replace What:="aaa", _
> > Replacement:="bbb", _
> > LookAt:=xlPart, _
> > SearchOrder:=xlByRows, _
> > MatchCase:=False
> >
> > See Find & Replace in help
> >
> > Regards,
> > Peter T
> >
> > "pnp" <(E-Mail Removed)> wrote in message
> > news:6A64F01F-A804-4EAB-834D-(E-Mail Removed)...
> > > Hi all
> > >
> > > Is there any way to programmatically interact with the controls on the
> > > search/replace dialog (xlDialogSearch). Especially interested in
setting
> > the
> > > match case and match entire cell checkboxes, and set the find and
replace
> > > words.
> > >
> > > I've searched the help for "dialog box arguments" which comes up with
a
> > long
> > > list of parameters to the show method for different dialogs, but....
> > > xlDialogSearch is not on that list...
> > >
> > > Can anyone help me with this?
> > >
> > > best regards
> > > /Anders
> >
> >
> >
|