+ Reply to Thread
Results 1 to 2 of 2

Open SaveAs box and suggest name

Hybrid View

  1. #1
    Registered User
    Join Date
    06-07-2009
    Location
    london, england
    MS-Off Ver
    excel 2010
    Posts
    36

    Open SaveAs box and suggest name

    Hi

    I am trying to open the SaveAs dialog box in a way which is compatiable with Excel 2000 and 2003 and suggest a filename. If possible I would like the default directory to be the same as the file template that they are using.

    I saw a suggestion on the internet to use :

    Dim fd As FileDialog

    but when I try to run this is shows an error "user-type not defined".

    If you could help that would be great.

    Thanks
    James

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,485

    Re: Open SaveAs box and suggest name

    Try using GetSaveAsFilename

    
    chdir "<your folder>"
    vntFileName = application.GetSaveAsFilename("MyFile.xls","Excel file (*.xls),*.xls")
    Cheers
    Andy
    www.andypope.info

+ 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