+ Reply to Thread
Results 1 to 4 of 4

Finding a folder with today's date

  1. #1
    Forum Contributor
    Join Date
    12-21-2011
    Location
    MS, USA
    MS-Off Ver
    Excel 2013
    Posts
    119

    Finding a folder with today's date

    I'm looking for a vba that will find a folder with today's date formated 07112016 using excel macro. I want the macro to able to find a spreadsheet that contains "pay.gov" excel file in today's formatted date folder. And be able to page break a row before a value of a cell. For insrance, the first column, will contain the "transaction" so I want the page to break a row before this. And save as pdf in the same folder to be filenamed based a name field. For instance, the first column will have a field "payor", then the column after this will have the name of actual payor which is the name of the filename I want to be saved as pdf in the same folder.

  2. #2
    Forum Contributor
    Join Date
    12-21-2011
    Location
    MS, USA
    MS-Off Ver
    Excel 2013
    Posts
    119

    Re: Finding a folder with today's date

    But if the payor is the same for each transaction, then add a number after the payor''s name in the filename.

  3. #3
    Forum Contributor
    Join Date
    12-21-2011
    Location
    MS, USA
    MS-Off Ver
    Excel 2013
    Posts
    119
    After reading what i just explained, my concern is there are several pay.gov spreadsheets in the same folder. So it might cause an issue? Because I do want all of pay.gov spreadsheet to perform what i just mentioned. There is however another name with the pay.gov filename. So what if we add if the filename contains other value, do the same function and not loop it again because it is done the first time?

  4. #4
    Forum Contributor
    Join Date
    12-21-2011
    Location
    MS, USA
    MS-Off Ver
    Excel 2013
    Posts
    119
    Let me rephrase:



    I'm looking for a vba that will find a folder with today's date formated 07112016 using excel macro. I want the macro to able to find a spreadsheet that contains "pay.com" excel file in today's formatted date folder.

    For example:
    C://user/document/FY2016/July/07112016

    Open one of the pay.com spreadsheets.

    For example:
    Pay.com creditcard.xls

    Then be able to make sure all rows are fully open (does not hide the details in the rows) and page break a row before a value of a cell. For instance, the first column A, will contain the "transaction" so I want the page to break a row before this and auto page fit to one page for each of the page break. Then save as pdf in the same folder to be filenamed based name fields for each payor.

    For instance, the first column A will have a field "payor", then the next column B on the same row will have the name of actual payor which is the name of the filename I want to be saved, plus if column D contains one of the business name:

    Citibank
    Chase
    PNC

    then include it with the filename and current month and current Fiscal Year to be saved as pdf in the same folder.
    For example:
    Mike_Citibank-Jul FY16.pdf

    But if the payor is the same for each transaction, then add a number after the payor''s name in the filename.

    For example:
    Mike_Citibank(1)-Jul FY16.pdf

    This spreadsheet can have many payor so I want it to loop until all of the payor are each filenamed into pdf.

    But once the files have been saved to pdf, close it and move the excel files to a backup folder within the path.

    For example:
    C://user/document/FY2016/July/07112016/backup

    Quote Originally Posted by preciouslife73 View Post
    After reading what i just explained, my concern is there are several pay.gov spreadsheets in the same folder. So it might cause an issue? Because I do want all of pay.gov spreadsheet to perform what i just mentioned. There is however another name with the pay.gov filename. So what if we add if the filename contains other value, do the same function and not loop it again because it is done the first time?

+ 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. Replies: 10
    Last Post: 09-06-2023, 08:19 PM
  2. [SOLVED] Finding duration between today and the last date entered
    By RJL3313 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 02-04-2015, 03:25 PM
  3. Finding the nearest date in a column with reference to today
    By lenare in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2013, 10:51 AM
  4. [SOLVED] Saving workbook to specific folder with a name based on info in a cell + today's date.
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-24-2012, 10:34 AM
  5. Finding the closest future date from Today from a list of dates
    By maharg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-18-2008, 09:45 AM
  6. Finding Average if today's date has arrived
    By windme in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-26-2006, 03:13 PM
  7. Save spreadsheet into folder based on today's Date?
    By nbaj2k in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-04-2006, 11:40 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