+ Reply to Thread
Results 1 to 2 of 2

File SaveAs

  1. #1
    FinChase
    Guest

    File SaveAs

    I have a text file that I have imported and done some formatting on. Now I
    want to use VB to automatically save the file as an .xls to the current path
    with the current date.

    For example, the text file may be named MyTextFile.txt, so I want to save it
    to current path/MyTextFile_Today's Date_Review.xls.

    Thanks!

  2. #2
    Dick Kusleika
    Guest

    Re: File SaveAs

    FinChase

    ActiveWorkbook.SaveAs "MyTextFile_" & Format(Date,"yyyymmdd") &
    "_Review.xls"

    --
    **** Kusleika
    MVP-Excel
    www.dailydoseofexcel.com

    FinChase wrote:
    > I have a text file that I have imported and done some formatting on.
    > Now I want to use VB to automatically save the file as an .xls to the
    > current path with the current date.
    >
    > For example, the text file may be named MyTextFile.txt, so I want to
    > save it to current path/MyTextFile_Today's Date_Review.xls.
    >
    > 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