Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 06-30-2009, 05:11 PM
bjb93 bjb93 is offline
Registered User
 
Join Date: 30 Jun 2009
Location: England
MS Office Version:Excel 2007
Posts: 1
bjb93 is becoming part of the community
Todays Date Macro

Please Register to Remove these Ads

I don't know how to make a macro that
When either I open the workbook, or press "D3" it inserts today's date into "C3"
Could anyone help me out
Reply With Quote
  #2  
Old 06-30-2009, 07:21 PM
martindwilson's Avatar
martindwilson martindwilson is offline
Forum Guru
 
Join Date: 23 Jun 2007
Location: London,England
MS Office Version:office 97 ,2003 ,2007
Posts: 6,075
martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding martindwilson Has a higher level of understanding
Re: Todays Date Macro

for on open
use
Code:
Private Sub Workbook_Open()

Dim LDate As String

LDate = Date
Sheets("Sheet1").Range("a1") = LDate
End Sub
edit
i just thought what a pointless excercise just put
=today() in a1 !!!!!!!!!
__________________
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code

how to enter array formula


recommended reading
wiki Mojito

how to say no convincingly

most important think you need

Last edited by martindwilson; 06-30-2009 at 07:51 PM.
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Forum Jump