Results 1 to 4 of 4

Prompt user for directory and filename; then save file in directory with file name

Threaded View

sgreni Prompt user for directory and... 06-10-2009, 04:25 PM
Leith Ross Re: Prompt user for directory... 06-10-2009, 05:08 PM
Kenneth Hobson Re: Prompt user for directory... 06-10-2009, 05:17 PM
sgreni Re: Prompt user for directory... 06-11-2009, 07:08 PM
  1. #1
    Registered User
    Join Date
    06-03-2009
    Location
    California
    MS-Off Ver
    Excel 2000
    Posts
    20

    Prompt user for directory and filename; then save file in directory with file name

    I am trying to prompt the user for the directory to be saved in and file name to be saved as; then save the workbook in the input directory with the inputted file name.

    Sub RFIFORMSave()
    
        FILDIR = InputBox("Please enter the File directory you want to save to:", "Working Directory")
        
        ChDir FILDIR
        
        SAVENAME = InputBox("Please enter the name you would like to save the Request for Information as:")
        
        ActiveWorkbook.SaveAs Filename:= _
            FILDIR"\SAVENAME.xls", _
            FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
            ReadOnlyRecommended:=False, CreateBackup:=False
            
            
    End Sub
    Attached Files Attached Files

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