#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default time stamp question

Ok i figured out how to do a time stamp, but know i am trying to format the
rule that JE McGimpsey provides in his website. So that the date stamp does
not appear in next cell but in another cell. Below is a link with the example
of the rule.

http://www.mcgimpsey.com/excel/timestamp.html

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default time stamp question

Just change the default value of the offset column variable. For example:

Instead of:
Optional ByVal ColOffset As Long = 1&, _
use:
Optional ByVal ColOffset As Long = 2&, _

--
Gary''s Student - gsnu200773


"Rodrigo" wrote:

Ok i figured out how to do a time stamp, but know i am trying to format the
rule that JE McGimpsey provides in his website. So that the date stamp does
not appear in next cell but in another cell. Below is a link with the example
of the rule.

http://www.mcgimpsey.com/excel/timestamp.html

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default time stamp question

This is the rule that i am using. I do not see the Optional ByVal ColOffset
As Long = 1&.

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Target
If .Count 1 Then Exit Sub
If Not Intersect(Range("A2:A10"), .Cells) Is Nothing Then
Application.EnableEvents = False
If IsEmpty(.Value) Then
.Offset(0, 1).ClearContents
Else
With .Offset(0, 1)
.NumberFormat = "dd mmm yyyy hh:mm:ss"
.Value = Now
End With
End If
Application.EnableEvents = True
End If
End With
End Sub



"Gary''s Student" wrote:

Just change the default value of the offset column variable. For example:

Instead of:
Optional ByVal ColOffset As Long = 1&, _
use:
Optional ByVal ColOffset As Long = 2&, _

--
Gary''s Student - gsnu200773


"Rodrigo" wrote:

Ok i figured out how to do a time stamp, but know i am trying to format the
rule that JE McGimpsey provides in his website. So that the date stamp does
not appear in next cell but in another cell. Below is a link with the example
of the rule.

http://www.mcgimpsey.com/excel/timestamp.html

Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time Stamp Kenny Excel Discussion (Misc queries) 8 October 14th 08 06:15 PM
Time Stamp Mike D. Excel Discussion (Misc queries) 2 May 25th 07 07:51 PM
Time Stamp FARAZ QURESHI Excel Discussion (Misc queries) 8 January 8th 07 11:51 PM
time stamp jiwolf Excel Worksheet Functions 4 December 20th 05 07:18 PM
Time Stamp Richard Excel Discussion (Misc queries) 4 February 2nd 05 11:16 PM


All times are GMT +1. The time now is 01:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"