+ Reply to Thread
Results 1 to 2 of 2

Save file with time date stamp

  1. #1
    Forum Contributor
    Join Date
    08-28-2005
    Posts
    132

    Save file with time date stamp

    I have this code

    Please Login or Register  to view this content.
    I want the 'filename to be todays time and date.

    How do I make this happen?

  2. #2
    Norman Jones
    Guest

    Re: Save file with time date stamp

    Hi Oberon,

    Try:

    Dim sStr As String

    sStr = Format(Now, "yyyymmdd (hh-mm)") & ".xls"
    ActiveWorkbook.SaveAs Filename:="c:\t\q1\blue\save\" & sStr

    Change the date / time format to suit.

    ---
    Regards,
    Norman



    "oberon.black" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > I have this code
    >
    >
    > Code:
    > --------------------
    >
    > ActiveWorkbook.SaveAs Filename:="c:\t\q1\blue\save\"filename""
    >
    > --------------------
    >
    >
    > I want the 'filename to be todays time and date.
    >
    > How do I make this happen?
    >
    >
    > --
    > oberon.black
    > ------------------------------------------------------------------------
    > oberon.black's Profile:
    > http://www.excelforum.com/member.php...o&userid=26732
    > View this thread: http://www.excelforum.com/showthread...hreadid=469731
    >




+ 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