+ Reply to Thread
Results 1 to 3 of 3

Macro to save file each day to specific folder with date in name

  1. #1
    Registered User
    Join Date
    11-01-2012
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    8

    Macro to save file each day to specific folder with date in name

    Hello everyone,
    This forum has been extremely helpful for me, but I’ve never posted anything before today. I’ve looked at a lot of other posts and could not get quite the answer I need.
    Each day I receive a new report and have to format it and save it to a specific folder. I have the macro to do all the formatting but I can’t get it to save to “My Documents”.
    This is what I have:

    Range("Q1").Select
    ActiveCell.FormulaR1C1 = "PDIP"
    Range("R1").Select
    ActiveWorkbook.SaveAs Filename:="C:\Documents and Settings\pricer\My Documents & Range("Q1").Value & Format(Date, "mmddyyyy"), FileFormat _
    :=xlCSV, CreateBackup:=False,

    My macro types “PDIP” in Q1 so that is included in the name. I don’t think I need to do that but that’s what I have for now
    I want it to save it to My Documents as a CSV with the name “PDIP(date)”. When I finish editing this line in the macro I get the error “Compile Error: Syntax Error”
    Does anyone have any tips?
    Last edited by sjhf; 09-12-2013 at 06:51 PM.

  2. #2
    Forum Contributor
    Join Date
    01-17-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    211

    Re: Macro to save file each day to specific folder with date in name

    in red
    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved , to mark your thread as Solved select Thread Tools and click Mark thread as Solved.

    I can't read the mind of my wife so then I get picture but no sound .... and then I mostly get the idea, same goes here picture your outcome and I get the idea.

  3. #3
    Registered User
    Join Date
    11-01-2012
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Macro to save file each day to specific folder with date in name

    Thanks you, hulpeloos. I knew it was something simple.

+ 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. [SOLVED] Need a Macro to group certain columns and save them as a separate file in specific folder
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-31-2013, 11:51 AM
  2. [SOLVED] macro to save file to specific folder with file name from cell reference
    By mezza89 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2013, 11:32 AM
  3. [SOLVED] save macro with specific folder and file name and type
    By wolfm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2013, 10:08 AM
  4. Save macro to specific folder by date
    By dgtaylor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2011, 12:56 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