
Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
Thanks Doug, today it's working.
(i.e. If .Show = , Retval = .Show etc all work today, after shutting down
the computer last night, go figure!). That said, I'm still curious as to why
all the "MVP" code I've seen on the net puts On Error Resume Next before
calling this dialog, but no matter. "Ours not to reason why" apparently
(given the 'tone' of this newsgroup), ours but to say what we are trying to
do : - )
Talking of which, apart from the above (retrieving the return value of
.Show), I'm also trying to do the following:
1. Control wdDialogEditReplace, i.e. make it modeless. The .Show method
only takes Timeout as argument. There appears to be no way to make it
modeless (the Find tab is dimmed). I would like it to be modeless (as it is
when called by Word's user interface) to give the user the option of
clicking the Find tab (hence my query about possible Win API workarounds,
I'm still takers, should you know of one)
2. Configure wdDialogEditReplace before ".Show" ing it , i.e. force it to
show More (perhaps I could try a Sendkeys to automatically develop the
'More' options?). Since you are no doubt going to say "what are you trying
to do", I need to do this to prompt the user to consider whether or not they
need to check "Match case" and/or "Match whole word", which are critical
parameters in the translation-related routine I'm writing.
Of the two, number 1 (the modeless issue) is by far the most important to
me. Why is this dialog modal when called by code but modeless when called
"'normally" by the user? Where's the logic?
Thanks for any enlightenment
Richard
> Tell us what you are really trying to do, rather that how you have not
> been able to achieve it.
[quoted text clipped - 38 lines]
>>
>> Richard