+ Reply to Thread
Results 1 to 3 of 3

Thread: FileDialog

  1. #1
    Registered User
    Join Date
    11-20-2009
    Location
    Columbus, Ohio, USA
    MS-Off Ver
    Excel 2003 moving to Excel 2007
    Posts
    4

    FileDialog

    I have done quite a bit of simple Office VBA programming, so I must be doing something silly and would sure appreciate some help to get past it.

    From within Outlook (2003) I used Alt-F11 to start Microsoft Visual Basic.
    The following sub
    Sub test1()
        Dim Dialog As Office.FileDialog
        Set Dialog = Application.FileDialog(msoFileDialogFilePicker)
        MsgBox "did it"
    End Sub
    produces the error "Run-time error '438': Object doesn't support this property or method"

    In the Tools>References dialog, the checked items are:
    • Visual Basic for Applications
    • Microsoft Outlook 11.0 Object Library
    • Microsoft Office 11.0 Object Library
    • Microsoft Excel 11.0 Object Libarry
    • OLE Automation
    • Microsoft Forms 2.0 Object Library

    Can someone please tell me what I've missed?

    Thanks!

    Dave

  2. #2
    Registered User
    Join Date
    11-09-2008
    Location
    germany
    Posts
    74

    re: FileDialog

    pretty sure that from outlook you cannot use the file dialog.

    Just initiate a Word application or Excel application and then initiate the file dialog that way.

  3. #3
    Registered User
    Join Date
    11-20-2009
    Location
    Columbus, Ohio, USA
    MS-Off Ver
    Excel 2003 moving to Excel 2007
    Posts
    4

    re: FileDialog

    Thanks! I created an Excel object and it works fine. I appreciate your help.

    Dave

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0