+ Reply to Thread
Results 1 to 4 of 4

Saving along a Tricky Path

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Saving along a Tricky Path

    I have to create a report every day and save it to the appropriate folder. In my macro, my current saving code is:
    Please Login or Register  to view this content.
    This saves in the "Voucher Errors" folder. I then have to cut and paste it into one of the folders below:
    Please Login or Register  to view this content.
    Our fiscal year begins in September, so that's month 1, and goes through August, so August is month 12. So, for instance, a report I run today I would have to move to the "02 OCTOBER 2018-FY19" folder. What I'm looking for is a way to have my saving code determine the folder to place into, but I'm so far unable to wrap my head around how to write that logic. Any help would be appreciated.
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

  2. #2
    Forum Contributor
    Join Date
    09-19-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    208

    Re: Saving along a Tricky Path

    This code may work...
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Saving along a Tricky Path

    I think you've got it! Your logic is spot on, and it appears it will work for every month of the year. Good job on thinking it through, and thank you very much!

  4. #4
    Forum Contributor
    Join Date
    09-19-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    208

    Re: Saving along a Tricky Path

    You're welcome, glad I could assist!

+ 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] Using BrowseFolder Control To Set Path For Saving
    By Logit in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2018, 12:04 PM
  2. [SOLVED] Saving pdf in the same path selected by user
    By ell_ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-01-2018, 09:30 PM
  3. saving to a specific file path
    By cartica in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-05-2013, 04:06 PM
  4. 2 cells as path for saving as
    By graiggoriz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2013, 08:31 AM
  5. Tricky one - Daylight Saving Time/DST/Wintertime and leap years. How to?
    By Daniel86 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2012, 01:25 AM
  6. Path for File Saving Defined by USER
    By crapmind in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-21-2007, 09:58 AM
  7. [SOLVED] Saving a file to a different path
    By SVTman74 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2005, 04:05 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