PC Review


Reply
Thread Tools Rate Thread

display time when macro was last run

 
 
Josh Craig
Guest
Posts: n/a
 
      8th May 2009
Is there a way I can display in a cell the time a macro was last run?

Any help is appreciated!

Josh


 
Reply With Quote
 
 
 
 
FSt1
Guest
Posts: n/a
 
      8th May 2009
hi
this should do it.
Range("A1").Value = "Last run"
Range("A2").Value = Time ' or Now or Date
stick this line at the begining or end of the macro or anywhere you think is
good
adjust ranges to suit.

Regards
FSt1

"Josh Craig" wrote:

> Is there a way I can display in a cell the time a macro was last run?
>
> Any help is appreciated!
>
> Josh
>
>

 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      8th May 2009
Why dont you write a timestamp to a cell at the end of the macro..


If this post helps click Yes
---------------
Jacob Skaria


"Josh Craig" wrote:

> Is there a way I can display in a cell the time a macro was last run?
>
> Any help is appreciated!
>
> Josh
>
>

 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      8th May 2009
Sub MyMacro()
'Timestamp
Worksheets("Macro Log").Range("A1") = "MyMacro"
Worksheets("Macro Log").Range("B1") = Now()
'/Timestamp

< your code>

End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

> Why dont you write a timestamp to a cell at the end of the macro..
>
>
> If this post helps click Yes
> ---------------
> Jacob Skaria
>
>
> "Josh Craig" wrote:
>
> > Is there a way I can display in a cell the time a macro was last run?
> >
> > Any help is appreciated!
> >
> > Josh
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display macro running time in Form MarkusJohn Microsoft Access Macros 1 5th Oct 2007 06:20 AM
programming a macro to display the current time =?Utf-8?B?c2hlcm9ib3Q=?= Microsoft Excel Programming 4 30th Sep 2006 05:29 PM
Can you perform ctrl+shift+; in a macro to display time? =?Utf-8?B?RGFycmFuIFBhcnNvbnM=?= Microsoft Excel Misc 1 18th Jan 2006 12:38 PM
Display a running time (clock time) into a PowerPoint 2002 slide? =?Utf-8?B?MmxvZ1I=?= Microsoft Powerpoint 1 7th Oct 2004 07:53 PM
RE: Appointments do not display the correct time since daylight savings time change =?Utf-8?B?VmljIEFicmFoYW1pYW4=?= Microsoft Outlook Installation 0 12th May 2004 12:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:21 PM.