+ Reply to Thread
Results 1 to 4 of 4

Macro for saving a copy of a file with a name provided by the user

  1. #1
    Registered User
    Join Date
    08-09-2012
    Location
    indianapolis
    MS-Off Ver
    Excel 2007
    Posts
    8

    Macro for saving a copy of a file with a name provided by the user

    Hello All,

    I need to create hundreds of copies of a single file and I'd like to use a macro to make my life not so terrible. I have a team of a few doxen agents who all need to complete a weekly tracking sheet. I use the GetValue function to import that data and as a result, i need the file name to be exactly what i have set it to. I currently spend too much time every monday creating new sheets with the correct name in each agent's file on our shared drive.

    What i need is a macro that will allow me to open the master tracking sheet, then save a copy of itself with the filename of the current payperiod ending, like 10052012. The file would be exactly the same as the master but be named 10052012 and it would have been copied into each agent's folder by the macro. It would also be nice if i could provide the macro with the file name by usign a text box.

    My programming experience is minimal at best and i'm lost on this one. Any ideas?

    Thanks again, I really appreciate it.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro for saving a copy of a file with a name provided by the user

    How can I know agent's folders ?
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    08-09-2012
    Location
    indianapolis
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Macro for saving a copy of a file with a name provided by the user

    Each agent has their own file located here "G\ms\data\"

    Each agent's folder is just their name, so "G\me\data\mike" for Mike's files. There are seven agents. Does that help?

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro for saving a copy of a file with a name provided by the user

    you want open the master tracking sheet, then save a copy, why do you want open it ? you have to change something ?
    I think it's better to copy file on others folders without opening it
    try this
    Please Login or Register  to view this content.
    Last edited by patel45; 10-03-2012 at 09:04 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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