+ Reply to Thread
Results 1 to 4 of 4

Save As with multiple dates

  1. #1
    Forum Contributor
    Join Date
    11-06-2012
    Location
    New Jersey, US
    MS-Off Ver
    Excel 2007
    Posts
    174

    Save As with multiple dates

    Hello - probably an easy one for most of you

    - Trying to use SaveAs with multiple dates.
    - mon and sun are strings.
    - The file should be saved as Report_1_07_29_2013_to_08_04_2013.xls

    Please Login or Register  to view this content.

    Thank you.

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Save As with multiple dates

    Hi

    It would help to have a bit more information. How will the macro identify what dates to use - is it from today for the next 7 days, the current work week, the week previously, etc

    Also, is it always the same days of the week (Mon-Sun etc) or can it vary?

  3. #3
    Forum Contributor
    Join Date
    11-06-2012
    Location
    New Jersey, US
    MS-Off Ver
    Excel 2007
    Posts
    174

    Re: Save As with multiple dates

    Thank you for your response.

    This is what I did to identify what the previous monday and sunday are:

    Please Login or Register  to view this content.

    *Note that I have only 2 instances so far


    And the last part is to save the file based on the mon and sun strings:

    Please Login or Register  to view this content.

    But I'm getting an end of statement error.

    Thanks,

    Mark

  4. #4
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Save As with multiple dates

    Hi
    I think all you are missing in your code is an ampersand before "to " in your saveas formula

    Please Login or Register  to view this content.
    this slight modification should work whatever day of the week you use the macro:


    Please Login or Register  to view this content.

+ 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] Large spreadsheet; multiple scores on multiple dates for multiple students
    By MelindaCapri in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-16-2012, 06:03 PM
  2. [SOLVED] Request a Macro to Convert data into Dates (Multiple Dates Values separated by Line)
    By seenai in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2012, 02:28 AM
  3. [SOLVED] Find and add missing dates. Autofill the newly added rows. Save as csv(comma delimited)
    By msls09 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-18-2012, 01:29 PM
  4. Replies: 1
    Last Post: 06-25-2012, 12:45 AM
  5. Replies: 6
    Last Post: 01-05-2006, 12:25 AM

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