+ Reply to Thread
Results 1 to 3 of 3

Rename File

  1. #1
    Jos Vens
    Guest

    Rename File

    Hi,

    is there an easier way to rename a file than to copy it, save it as the
    desired name, and kill afterwards the original file?

    thanks,
    Jos Vens



  2. #2
    Norman Jones
    Guest

    Re: Rename File

    Hi Jos,

    Try:

    Name OldName As NewName ' Move and rename file.


    See Name Statement and example in VBA help.

    ---
    Regards,
    Norman



    "Jos Vens" <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    >
    > is there an easier way to rename a file than to copy it, save it as the
    > desired name, and kill afterwards the original file?
    >
    > thanks,
    > Jos Vens
    >




  3. #3
    Jos Vens
    Guest

    Re: Rename File

    Thanks again, Norman

    this is much better! I owe you a beer, I guess.

    Jos


    "Norman Jones" <[email protected]> schreef in bericht
    news:[email protected]...
    > Hi Jos,
    >
    > Try:
    >
    > Name OldName As NewName ' Move and rename file.
    >
    >
    > See Name Statement and example in VBA help.
    >
    > ---
    > Regards,
    > Norman
    >
    >
    >
    > "Jos Vens" <[email protected]> wrote in message
    > news:[email protected]...
    >> Hi,
    >>
    >> is there an easier way to rename a file than to copy it, save it as the
    >> desired name, and kill afterwards the original file?
    >>
    >> thanks,
    >> Jos Vens
    >>

    >
    >




+ 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