I guess a more general way of putting it is:
How do you display a dialog with settings already filled in?
And also then end the macro right there with the dialog opened, so the user
can click the document in the background (e.g. the Go To dialog is not modal,
allowing you to move to the document and back).
> Hi,
>
[quoted text clipped - 15 lines]
> ...the Go To dialog opens but with some other settings. How can I retain the
> wdGoToField, wdGoToNext, and Name settings in the displayed dialog?
Steve Yandl - 14 Dec 2007 22:43 GMT
You're very limited on what you can set in advance with some of the dialog
boxes. You could do something like:
With Dialogs(wdDialogEditGoTo)
.Destination = "REF"
.Show
End With
but that won't force the setting to go to 'Field'. It will put "REF" in the
dialog but you don't want to direct your users to GoTo a page named "REF".
I think I'd design a custom UserForm and have the code attached to a command
button take the user where you want them to go.
Steve
>I guess a more general way of putting it is:
>
[quoted text clipped - 29 lines]
>> the
>> wdGoToField, wdGoToNext, and Name settings in the displayed dialog?