CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2000
    Location
    Birmingham, England
    Posts
    213

    CFileDialog in VC++6.0, How do I do this in VBA

    Quite simply all I want to do is use the common file dialog from a word macro to get two filenames, can this be done ??

    Cheers for any help...

    Stitch
    ====================
    I'm gonna create a whole new wicked language called C~(see-blunt), no changed me mind Co(see-through)

  2. #2
    Join Date
    Mar 2000
    Posts
    95

    Re: CFileDialog in VC++6.0, How do I do this in VBA



    Sub Open_File()

    Dim choose_file

    choose_file = Application.Dialogs(wdDialogFileOpen).Show("c:\temp\*.*")
    If choose_file = false then
    Exit Sub
    else
    'do something
    End If

    End Sub





    Curt


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured