+ Reply to Thread
Results 1 to 4 of 4

Creating Macro that will save a copy of the workbook to new directory + make it an add in

  1. #1
    Registered User
    Join Date
    09-08-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2010
    Posts
    2

    Exclamation Creating Macro that will save a copy of the workbook to new directory + make it an add in

    Hi all,

    I need a macro that will save a file in a specified directory such as

    C:\Users\Bryan\Desktop\Folder

    and it will save it with the name "Timesheet" followed by todays date: such as Timesheet9/8/2012
    the code i am using now seems to move the workbook completely, when i am trying to keep the workbook and save a copy of the completed timesheet into a different folder.
    This is what I currently have

    Please Login or Register  to view this content.
    I also want to make this macro an add in, so that others can add it to their ribbon in order to run this macro, I have had horrible attempts at making a macro an add in.


    Any help appreciated

    Thanks,
    BeachMaster

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,450

    Re: Creating Macro that will save a copy of the workbook to new directory + make it an add

    You'd need an extra slash ...

    Please Login or Register  to view this content.
    Otherwise it's going to be saved to your desktop.

    Look here for a routine to get the user's desktop location:

    http://www.vbaexpress.com/kb/getarticle.php?kb_id=216


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    09-08-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Creating Macro that will save a copy of the workbook to new directory + make it an add

    thank you! feel dumb now :/ though, haha.

    any links/advice on making macro into an AddIn?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,450

    Re: Creating Macro that will save a copy of the workbook to new directory + make it an add

    You're welcome.

    http://www.cpearson.com/excel/createaddin.aspx


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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