+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    06-30-2009
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    1

    Todays Date Macro

    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

  2. #2
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    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 !!!!!!!!!
    Last edited by martindwilson; 06-30-2009 at 08:51 PM.
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0