timestamp

C

cape

I am using the following code to insert the timestamp. I need this time
stamp to go into my Table of contents (worksheet) and the timestamp in
cell a5

ActiveCell.Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=NOW()"
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Selection.NumberFormat = "mm/dd/yy hh:mm:ss"

Thanks in advance
 
F

Frank Kabel

Hi
use something like
with worksheets("contents").range("A5")
..value=now
..numberformat="mm/dd/yy hh:mm:ss"
end with
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top