Consulting

Results 1 to 4 of 4

Thread: Standard open/save file forms in VBA

  1. #1
    VBAX Regular
    Joined
    Mar 2009
    Posts
    47
    Location

    Standard open/save file forms in VBA

    Are there standard functions in VBA which essentially perform the standard open/save file functions through user forms (as shown in the attached screenshot) and enable any file to be opened/saved from within VBA?

    I don't want to reinvent the wheel in terms of implementing these user forms.

    Thanks.

    Shankar

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Look at GetOpenFilename and GetSaveAsFilename in VBA help.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Mar 2009
    Posts
    47
    Location
    Thanks! That worked.

  4. #4
    VBAX Regular
    Joined
    Oct 2009
    Location
    Fremont, CA
    Posts
    72
    Location

    A more general answer to your question

    You can use the Show method of the Application.Dialogs property to show almost any of the Excel-intrinsic dialogs using VBA, e.g.

    [vba]
    Application.Dialogs(xlDialogOpen).Show
    [/vba]

    Check out http://msdn.microsoft.com/en-us/libr...ffice.11).aspx for more details.
    Hope this helped,
    Rolf Jaeger
    SoarentComputing
    Software Central

Posting Permissions

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