Hi all,

I need to understand what this piece of WordBasic code do, in order to
translate it to vba.

Dim Q As Object
Set Q = WordBasic.DialogRecord.EditFind(False)
WordBasic.CurValues.EditFind Q

I cant' find any information neither in the VBA help nor in the
WordBasic help file.

Thanks in advance, if you could help me.

Regards,

Philippe

Re: What does this WordBasic statement do? by Tony

Tony
Mon Feb 25 03:17:43 PST 2008

It creates an object, Q, containing the current values in the Find Dialog.

For example, if you added "Msgbox Q.Find" after it you would see the last
string you looked for, if any.

The snippet you've posted doesn't show how Q is later used so I can't really
say much more.

--
Enjoy,
Tony

<phpons@gmail.com> wrote in message
news:13fc50ba-abf4-4ea7-993c-700e0d588d74@34g2000hsz.googlegroups.com...
> Hi all,
>
> I need to understand what this piece of WordBasic code do, in order to
> translate it to vba.
>
> Dim Q As Object
> Set Q = WordBasic.DialogRecord.EditFind(False)
> WordBasic.CurValues.EditFind Q
>
> I cant' find any information neither in the VBA help nor in the
> WordBasic help file.
>
> Thanks in advance, if you could help me.
>
> Regards,
>
> Philippe


Re: What does this WordBasic statement do? by Graham

Graham
Mon Feb 25 05:09:40 PST 2008

Note also that some WordBasic commands do not translate directly to vba,
which is why they are still occasionally used.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


Tony Jollans wrote:
> It creates an object, Q, containing the current values in the Find
> Dialog.
> For example, if you added "Msgbox Q.Find" after it you would see the
> last string you looked for, if any.
>
> The snippet you've posted doesn't show how Q is later used so I can't
> really say much more.
>
>
> <phpons@gmail.com> wrote in message
> news:13fc50ba-abf4-4ea7-993c-700e0d588d74@34g2000hsz.googlegroups.com...
>> Hi all,
>>
>> I need to understand what this piece of WordBasic code do, in order
>> to translate it to vba.
>>
>> Dim Q As Object
>> Set Q = WordBasic.DialogRecord.EditFind(False)
>> WordBasic.CurValues.EditFind Q
>>
>> I cant' find any information neither in the VBA help nor in the
>> WordBasic help file.
>>
>> Thanks in advance, if you could help me.
>>
>> Regards,
>>
>> Philippe



Re: What does this WordBasic statement do? by phpons

phpons
Mon Feb 25 10:21:30 PST 2008

On 25 f=E9v, 14:09, "Graham Mayor" <gma...@REMOVETHISmvps.org> wrote:
> Note also that some WordBasic commands do not translate directly to vba,
> which is why they are still occasionally used.
>
> --
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Graham Mayor - Word MVP
>
> My web sitewww.gmayor.com
> Word MVP web sitehttp://word.mvps.org
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>
> Tony Jollans wrote:
> > It creates an object, Q, containing the current values in the Find
> > Dialog.
> > For example, if you added "Msgbox Q.Find" after it you would see the
> > last string you looked for, if any.
>
> > The snippet you've posted doesn't show how Q is later used so I can't
> > really say much more.
>
> > <php...@gmail.com> wrote in message
> >news:13fc50ba-abf4-4ea7-993c-700e0d588d74@34g2000hsz.googlegroups.com...
> >> Hi all,
>
> >> I need to understand what this piece of WordBasic code do, in order
> >> to translate it to vba.
>
> >> Dim Q As Object
> >> Set Q =3D WordBasic.DialogRecord.EditFind(False)
> >> WordBasic.CurValues.EditFind Q
>
> >> I cant' find any information neither in the VBA help nor in the
> >> WordBasic help file.
>
> >> Thanks in advance, if you could help me.
>
> >> Regards,
>
> >> Philippe

Thanks to both of you!
Philippe