Error in FileDialog

S

sailor_123

I am using Access 2003.

The following code from VBA "help file" generates an error, "Expecting user
defined type not project".

If I am not adding a reference then please tell me exactly what to add and
how.

Your help will be greatly appreciated.


Dim dlgSaveAs As FileDialog

Set dlgSaveAs = Application.FileDialog( _
FileDialogType:=msoFileDialogSaveAs)

dlgSaveAs.Show
 
S

sailor_123

The comment in the code to add reference on to "Microsoft Office 11.0 Object
Library" was the secret.

Thanks for the reply.
 

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