What does this WordBasic statement do?

P

phpons

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
 
T

Tony Jollans

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.
 
G

Graham Mayor

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

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
P

phpons

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
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Thanks to both of you!
Philippe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top