+ Reply to Thread
Results 1 to 2 of 2

Saving a file

  1. #1
    Dan
    Guest

    Saving a file

    I have the following statements:

    DataFileName = Application.GetOpenFilename(fileFilter:="Text or ASC Files,
    *.txt; *.asc", Title:="Select the Data File")

    ....code

    'Saves The File (As Sheetx) And Leaves It Open
    ActiveWorkbook.SaveAs

    'Saves File As DataFileName But With The Extension Of the File Opened TXT
    Format And Not In Excel Format
    ActiveWorkbook.SaveAs (DataFileName)

    'Receive Syntax Error
    ActiveWorkbook.SaveAs (DataFileName, FileFormat:="Excel (*.xls), *.xls")

    What am I missing?


  2. #2
    Dave Peterson
    Guest

    Re: Saving a file

    You have a response at your other post.

    Dan wrote:
    >
    > I have the following statements:
    >
    > DataFileName = Application.GetOpenFilename(fileFilter:="Text or ASC Files,
    > *.txt; *.asc", Title:="Select the Data File")
    >
    > ...code
    >
    > 'Saves The File (As Sheetx) And Leaves It Open
    > ActiveWorkbook.SaveAs
    >
    > 'Saves File As DataFileName But With The Extension Of the File Opened TXT
    > Format And Not In Excel Format
    > ActiveWorkbook.SaveAs (DataFileName)
    >
    > 'Receive Syntax Error
    > ActiveWorkbook.SaveAs (DataFileName, FileFormat:="Excel (*.xls), *.xls")
    >
    > What am I missing?


    --

    Dave Peterson

+ 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