RSS Forums RSS

Making Excel record a the time

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Thread Solved
Reply
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

  #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.
AddThis Social Bookmark Button
Reply With Quote  
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

  #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  
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

  #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  
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

  #4  
Oct 29th, 2005
sorry, didnt read the whole thing!
cheers man
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Views: 3368 | Replies: 3 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:13 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC