+ Reply to Thread
Results 1 to 4 of 4

"Save as" when file is closed

  1. #1
    Registered User
    Join Date
    11-21-2013
    Location
    Italy
    MS-Off Ver
    Excel 2010
    Posts
    4

    "Save as" when file is closed

    Dear all,

    I would like to kindly ask your support for the creation of a script (in excel 2010), activated when the excel file is closed, that will prompt to the user the “Save As” pop up window pointing already to a pre-defined directory.

    Thanks,
    Kate

  2. #2
    Forum Contributor
    Join Date
    11-15-2012
    Location
    Buffalo, NY
    MS-Off Ver
    Office 365
    Posts
    286

    Re: "Save as" when file is closed

    It depends on whether you want to give the user the option of saving it somewhere other thanthe pre-defined directory.

    If this latitude is OK, then the Application.GetFileDialog routines will be useful, if not, then you want to get a filename from somewhere, and just stash the file away in the directory of your choice. In this case, using Workbook.Close might be the way to go. (However, read the help for this routine very carefully - there are some possible ambiguities if you are sharing the use of an existing file, IOW the file is not being created New).

    Could you clarify this for us, and then we'll see better how to help!

    Tony

  3. #3
    Registered User
    Join Date
    11-21-2013
    Location
    Italy
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: "Save as" when file is closed

    Hello,

    I have an excel file that should be opened, changed by the users, and then stored (every time with a different name) into a share point folder. In order to achieve this I was thinking about a script that, as soon as the user will close the excel file, it will open the windows “Save as” dialog box pointing directly to the mentioned sharepoint folder (I’m looking for this direct pointing to avoid that the user will store the modified file into another folder).

    Hope I’ve been more clear this time

    Thanks,
    Kate

  4. #4
    Forum Contributor
    Join Date
    11-15-2012
    Location
    Buffalo, NY
    MS-Off Ver
    Office 365
    Posts
    286

    Re: "Save as" when file is closed

    Much better (he said, in a somewhat professorial manner)!

    The reason, seriously, is that you've just said that the file will always be an existing file, which brings up
    the question of the shared access.
    I'd try something along the lines of:
    Please Login or Register  to view this content.
    So now the only real problem is preventing a perverse user from changing the location (ie the Sharepoint folder). I'd suggest using an InputBox, asking for simply the filename that the user wants to use. (I'd also add a date and time component to prevent duplicates!).

    If you can handle that, then we're done! If not, let me know, and we'll continue,

    Tony

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Get / Extract data from another "CLOSED" excel file
    By ahmedomara in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2013, 09:26 AM
  2. How to click "SAVE" to save a new file with file name derived from a cell?
    By vettenfun in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 09-29-2011, 12:21 PM
  3. "File name" in "Save As" dialogue blank
    By Minor7th in forum Excel General
    Replies: 2
    Last Post: 08-23-2011, 10:31 PM
  4. Transfert cell values from file "A" to file "B" skipping columns in file "B".
    By Sentrosi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2009, 11:11 PM
  5. [SOLVED] Disabling "SAVE AS" option under "File"
    By Bidyut Bhattacharjee in forum Excel General
    Replies: 3
    Last Post: 03-22-2006, 02:40 PM

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