Results 1 to 9 of 9

Macro to open file name in date format

Threaded View

  1. #1
    Registered User
    Join Date
    07-27-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    53

    Exclamation Macro to open file name in date format

    Hi Friends,

    I want my macro to open a file from a folder whose name is bfna_210710 (Name contains yesterday's date). I know the simple code which open the file with today's date. Could you fine tune the below code so that it opens the file with yesterday's date included in the file name.
    Workbooks.Open Filename:="X:\Support\BFNA\bfna_" & Format(Date, "DDMMYY") & ".xls"
    thanks in advance
    Last edited by Chetan Chauhan; 07-22-2010 at 04:18 AM.

Thread Information

Users Browsing this Thread

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

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