+ Reply to Thread
Results 1 to 2 of 2

VBA CODE to Show Date After Running Macro

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    VBA CODE to Show Date After Running Macro

    I need a code to place a date in my workbook every time the macro code is ran and completed.

    I've attached a workbook example showing the format that I prefer.

    Basically, it's going to be :Thursday, February 19,2009 10:13 AM,
    in cell block F3.

    The code needs to be macro specific since I have more than one macro,
    I run.

    Thanks

    bdb
    Attached Files Attached Files
    Last edited by bdb1974; 02-19-2009 at 03:57 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,485

    Re: VBA CODE to Show Date After Running Macro

    Don't you just need to add this before the end of the macro?

    range("F3")=format(now(),"dddd,mmmm d,yyyy hh:mm AM/PM")
    Cheers
    Andy
    www.andypope.info

+ 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