Is it safe to continue using Dialogs(wdDialog...) in 2007?

G

Gary Hillerson

I've got a few places in my code that call built-in Dialogs; i'm
currently updating the code work with Word 2007. These calls still
seem to work: for example, but I'm wondering if there's any danger in
continuing to use them in the code (which will make it easier for me
to have a single template that works with all versions of Word).

Calls I use:
wdDialogInsertCaption
wdDialogInsertPicture
wdDialogInsertCaption
wdDialogFileSaveAs
wdDialogFilePrint
wdDialogTableInsertTable

These all seem to work code within my code. For example, these calls
work just as expected -- they display the dialog and return a result:

dlgresult=Dialogs(wdDialogTableInsertTable).Show (to insert a table)
or
dlgresult=Dialogs(wdDialogFileSaveAs).Show (to do a Save As)

Is there any problem with continuing to use these calls in 2007? Is
there a compelling reason to change them?

gary hillerson
 
D

Doug Robbins - Word MVP

I would not think so. After you get past the ribbon, most of the dialogs
that you get to are identical to those used in 2003 (and earlier versions).

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

Gary Hillerson

Doug,

Thanks for an answer, but i'm not certain how to interpret it, since I
asked both positive (is it ok) and negative (is there a danger)
questions in my post.

Are you saying that you would think it's fine to continue using them?
Sounds like it. Please confirm.

And thanks again,
gary
 
D

Doug Robbins - Word MVP

AFAIK, Yes.

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

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