Dialog Box

P

pcb_svp

Hello

I have a question on the open file dialog box:
the code is the following:

Sub test()

OpenBoolean = Application.Dialogs(xlDialogOpen).Show

Set x = CreateObject("Excel.Application")
OpenBoolean = x.Application.Dialogs(xlDialogOpen).Show

End Sub

The first line works fine however there is a problem with the third
line: I get the error "object not definied"

Can anyone help me?

Many thanks
 
P

pcb_svp

I'm sorry I forgot to mention the code is written in Access

If I define x as an apllication I get the error that there is a type
mismatch on the code
set x=createObject("Excel.Application")

Any other hints?

many thanks

FSt1 schreef:
 

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