+ Reply to Thread
Results 1 to 3 of 3

Excel macro to put static date in next cell down when opening workbook

Hybrid View

  1. #1
    Registered User
    Join Date
    05-01-2013
    Location
    Peterborough England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Excel macro to put static date in next cell down when opening workbook

    I would like a macro which puts the date in (static not updating) when the workbook is opened. This needs to be in the next cell down from the last entry.

    Thank you for your help.

    Elaine

  2. #2
    Registered User
    Join Date
    01-28-2013
    Location
    Manchester, England
    MS-Off Ver
    Excel 2003, Excel 2007, Excel 2010
    Posts
    50

    Re: Excel macro to put static date in next cell down when opening workbook

    Assuming that you want the date to appear in column A and on the opening worksheet then this should do the trick.
    I needs to be saved in workbook and not a module.

    Private Sub Workbook_Open()
    lr = Cells.Find("*", , xlValues, xlWhole, xlByRows, xlPrevious, False).Row + 1
    Range("A" & lr) = Date
    End Sub

  3. #3
    Registered User
    Join Date
    05-01-2013
    Location
    Peterborough England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Excel macro to put static date in next cell down when opening workbook

    Thank you for your time.

+ Reply to Thread

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.6.0 RC 1