#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Dialog Box

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Dialog Box

hi,
define it with a dim

sub test()
dim x as application

Regards
FSt1

" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Dialog Box

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:
hi,
define it with a dim

sub test()
dim x as application

Regards
FSt1

" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete the "Insert Function Dialog Box" (dialog box only)? TBI''d biker Excel Worksheet Functions 2 April 7th 07 09:18 PM
How to permanently change Dialog Caption while in the Dialog MikeZz Excel Programming 2 July 11th 06 04:53 PM
How to permanently change Dialog Caption while in the Dialog MikeZz Excel Programming 0 July 11th 06 04:14 PM
control of dialog macro dialog box. on open Gerry Abbott Excel Programming 0 July 22nd 04 05:41 PM
Pop up dialog box Lloyd Gordon Excel Programming 0 September 19th 03 07:43 PM


All times are GMT +1. The time now is 12:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"