+ Reply to Thread
Results 1 to 3 of 3

changing file name

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-09-2006
    Posts
    229

    changing file name

    Is there a way to change the file name in the directory before it is open?
    For example, the file that I have now named Sites.xls and I want to change it to
    Sites_2.xls before I open it.

    Thanks

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    How are you opening the file?

    if via a macro then use this line of code
    Name "C:\Test.txt" As "C:\Test01.txt"
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Forum Contributor
    Join Date
    12-09-2006
    Posts
    229
    yes I am using a macro.

    thanks

+ 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