FileOpen dialog settings

  • Hi,


    I'm trying to display the Word 'File Open' dialog box with the default 'Files of type' setting as 'All Files', but I'm struggling to find the correct argument and setting to use. Can anyone help?

    Code
    Sub OpenFileTest()
        Dim dial As Dialog
        
        Set dial = Dialogs(wdDialogFileOpen)
        dial.Show
    End Sub


    Regards,
    Batman.

    [COLOR="Purple"]Regards,[/COLOR]
    [COLOR="Purple"]Batman.[/COLOR]

  • Re: FileOpen dialog settings


    Hi,


    Help suggests[vba]Sub OpenFileTest()
    Dim dial As Dialog

    Set dial = Dialogs(wdDialogFileOpen)
    dial.Name = "*.*"
    dial.Show
    End Sub[/vba]

    [h4]Cheers
    Andy
    [/h4]

  • Re: FileOpen dialog settings


    Andy,


    Many thanks, that seems to work. I must admit that I looked all round the Help, searched the forum and a book of Word macros that I have and couldn't see it, although I was looking more for a property along the lines of .FileType.


    Regards,
    Batman.

    [COLOR="Purple"]Regards,[/COLOR]
    [COLOR="Purple"]Batman.[/COLOR]

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!