+ Reply to Thread
Results 1 to 2 of 2

how to open a file with name dynamic change

  1. #1
    Registered User
    Join Date
    05-03-2010
    Location
    quincy
    MS-Off Ver
    Excel 2003
    Posts
    21

    how to open a file with name dynamic change

    I want to write a code to open a file under C drive with dynamic name change. For example, the file full path is C:\export_2010_06_10_12345.xls

    I have name [Directory]= C:\export_2010_06_10_12345.xls
    Name 06 as Month
    Name 10 as Date

    Code is
    Please Login or Register  to view this content.
    For the “12345” is changing. I am wondering if the code above is right and how to vaguly define this path without considering number after date?

    I hope I make myself clear and any question is welcomed. Thanks for your help in advance.

    Thanks
    Last edited by poppypoppy; 06-14-2010 at 03:05 PM.

  2. #2
    Registered User
    Join Date
    05-03-2010
    Location
    quincy
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: how to open a file with name dynamic change

    I did some research which suggested to use wildcard "*"


    I recoded it but still not work

    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)

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