Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Excel / September 2007



Tip: Looking for answers? Try searching our database.

Creating a Macro time stamp

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
storm - 24 Sep 2007 13:06 GMT
I am trying to create a very simple macro.

(1) enter current time i.e. @now()
(2) copy this time and paste special as value (to fix the current time
as a time stamp)

Every time I create the macro and run it, it creates the @now() time
value BUT does not fix it as a value.

The following is the generated code:

   ActiveCell.FormulaR1C1 = "=NOW()"
   Range("D32").Select
   Selection.Copy
   Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone,
SkipBlanks:= _
       False, Transpose:=False
   Range("E32").Select
End Sub
ShaneDevenshire - 27 Sep 2007 15:21 GMT
Hi,

really don't need a macro.  Just press Control+;  (control and the
semi-colon key)

Signature

Cheers,
Shane Devenshire

> I am trying to create a very simple macro.
>
[quoted text clipped - 15 lines]
>     Range("E32").Select
> End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.