+ Reply to Thread
Results 1 to 2 of 2

VBA Code to adjust for dynamic file name

  1. #1
    Registered User
    Join Date
    05-31-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    7

    VBA Code to adjust for dynamic file name

    Hi,
    I am not an expert when it comes to VBA programing; however I often use the macro recorder, and delete items in the code that seem unnecessary.
    Below is the code that I have.

    The problem that I am facing is that the file name "NAV SHEET 070910" changes everyday.

    The 070910 represents the date. The macro will not work unless the file is named "NAV SHEET 070910". How can I change the code to accomodate the changing file name.

    Thanks in advance.
    Please Login or Register  to view this content.
    Last edited by patelh9; 07-10-2010 at 01:09 PM. Reason: Added Code Tags

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: VBA Code to adjust for dynamic file name

    Try this in your code
    Please Login or Register  to view this content.
    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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