Hello,
I was wondering if anyone has encountered the following problem when using automation through VBA to manipulate Word 2000 Dialog objects....
I am using automation to create a document in word that is based upon the data I have built up in word. Once I have created the document I would like to set the default file name of the doc so that when a user saves the document the correct name is shown in the File SaveAs dialog box.
I have found multiple references on the web to this code
Dialogs(wdDialogFileSaveAs).Name = PrefferedName
However when I attempt to do this in VBA (under access 2000) the .Name property is not exposed. The Microsoft Word 2000 object model states that this and a number of other properties should be exposed but they are not when I attempt to code it. Am I doing something wrong? Please help!
I was wondering if anyone has encountered the following problem when using automation through VBA to manipulate Word 2000 Dialog objects....
I am using automation to create a document in word that is based upon the data I have built up in word. Once I have created the document I would like to set the default file name of the doc so that when a user saves the document the correct name is shown in the File SaveAs dialog box.
I have found multiple references on the web to this code
Dialogs(wdDialogFileSaveAs).Name = PrefferedName
However when I attempt to do this in VBA (under access 2000) the .Name property is not exposed. The Microsoft Word 2000 object model states that this and a number of other properties should be exposed but they are not when I attempt to code it. Am I doing something wrong? Please help!