+ Reply to Thread
Results 1 to 4 of 4

Macro to save workbook to specific folder with a specific name, then kill/disable itself.

  1. #1
    Forum Contributor jonvanwyk's Avatar
    Join Date
    06-28-2010
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2010
    Posts
    452

    Macro to save workbook to specific folder with a specific name, then kill/disable itself.

    I would like to create a macro button called "CreateDocument" that

    1. Automatically saves the workbook to a specified folder on a shared drive "G:\Shared Folder\"

    2. Saves the workbook name based on "F2" - "F1" format where if "F1" is "Doe, John" and F2 is "1234". In this example the the saved document would be "1234 - Doe, John.xlsm"

    3. The macro should kill itself after saving the document under the new name to the specified folder (or it should at least disable itself from being used again in the newly created document).
    Last edited by jonvanwyk; 06-18-2012 at 03:48 PM. Reason: clarity

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Macro to save workbook to specific folder with a specific name, then kill/disable itse

    jonvanwyk,

    Something like this should do it:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor jonvanwyk's Avatar
    Join Date
    06-28-2010
    Location
    Iowa, USA
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: Macro to save workbook to specific folder with a specific name, then kill/disable itse

    Yes, thank you.

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Macro to save workbook to specific folder with a specific name, then kill/disable itse

    You're very welcome

+ 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