+ Reply to Thread
Results 1 to 2 of 2

How to set file Filter in Save dialog box

  1. #1
    Registered User
    Join Date
    06-22-2006
    Posts
    3

    How to set file Filter in Save dialog box

    Hi All

    I have a button in one of my sheet,when i click on it following macro code is invoked
    Please Login or Register  to view this content.
    Question: The dialog which opens up has filters like "All files[*.*],Test[*.txt]" etc in fileType: filetr,how to restrict this filter to *.txt" only?

    Thanks
    Sreenath M

  2. #2
    Harald Staff
    Guest

    Re: How to set file Filter in Save dialog box

    Hi

    Try using
    Application.GetSaveAsFilename
    instead of that dialog, you have no control of how that one turns out. See
    Help for detail.

    HTH. Best wishes Harald

    "sreenath205" <[email protected]>
    skrev i melding
    news:[email protected]...
    >
    > Hi All
    >
    > I have a button in one of my sheet,when i click on it following macro
    > code is invoked
    >
    > Code:
    > --------------------
    >
    >
    > Private Sub CommandButton3_Click()
    > Sheets("InputFile").Select
    > Application.Dialogs(xlDialogSaveAs).Show
    > End Sub
    >
    >
    > --------------------
    >
    >
    > Question: The dialog which opens up has filters like "All
    > files[*.*],Test[*.txt]" etc in fileType: filetr,how to restrict this
    > filter to *.txt" only?
    >
    > Thanks
    > Sreenath M
    >
    >
    > --
    > sreenath205
    > ------------------------------------------------------------------------
    > sreenath205's Profile:

    http://www.excelforum.com/member.php...o&userid=35663
    > View this thread: http://www.excelforum.com/showthread...hreadid=566541
    >




+ 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.6.0 RC 1