Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Apr 2004
    Location
    Jacksonville, Florida, USA
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts

    SaveAs (Excel 2000)

    I need to have a workbook saved to the directory of the user's choice, without closing. I'm using the following code:

    fname = Application.GetSaveAsFilename
    ActiveWorkbook.SaveAs (filename.xls)

    The file is getting saved, but not where I'm selecting in the SaveAs dialog box.

    What am I doing wrong???

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: SaveAs (Excel 2000)

    Since you store the result of GetSaveAsFilename in the variable fname, you must use that variable for the SaveAs method:

    ActiveWorkbook.SaveAs fname

Posting Permissions

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