Making Excel record a the time

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Sep 2005
Posts: 16
Reputation: grandfilth is an unknown quantity at this point 
Solved Threads: 0
grandfilth grandfilth is offline Offline
Newbie Poster

Making Excel record a the time

 
0
  #1
Oct 29th, 2005
I'd like excel to write the time when one of my macros tells it to copy and paste some cells into another workbook. I'd like it to paste the time into the other workbook. Any help would be much appreciated.
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 21
Reputation: SlyMaelstrom is an unknown quantity at this point 
Solved Threads: 2
SlyMaelstrom's Avatar
SlyMaelstrom SlyMaelstrom is offline Offline
Newbie Poster

Re: Making Excel record a the time

 
0
  #2
Oct 29th, 2005
http://msdn.microsoft.com/library/de...lywhenisit.asp

Try this.

If you're not up for reading it, the code would be:

Sub CopyWorksheet_Click()

Range("A1").FormulaR1C1 = Now

End Sub
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 16
Reputation: grandfilth is an unknown quantity at this point 
Solved Threads: 0
grandfilth grandfilth is offline Offline
Newbie Poster

Re: Making Excel record a the time

 
0
  #3
Oct 29th, 2005
Originally Posted by SlyMaelstrom
http://msdn.microsoft.com/library/de...lywhenisit.asp

Try this.

If you're not up for reading it, the code would be:

Sub CopyWorksheet_Click()

Range("A1").FormulaR1C1 = Now

End Sub
How do you make this work though? Sorry I'm a bit thick! How would I put this into a function so that a cell would read the time?
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 16
Reputation: grandfilth is an unknown quantity at this point 
Solved Threads: 0
grandfilth grandfilth is offline Offline
Newbie Poster

Re: Making Excel record a the time

 
0
  #4
Oct 29th, 2005
sorry, didnt read the whole thing!
cheers man
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC