+ Reply to Thread
Results 1 to 5 of 5

Auto Fill Todays Date In Column K in Last Value Found in Column A

  1. #1
    Forum Contributor
    Join Date
    06-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    214

    Auto Fill Todays Date In Column K in Last Value Found in Column A

    Can somebody help me figure out a way to fill in today's date to every row found with a Value in Column A and this is all done on sheet 3. The date will be placed into Column K. This is what I have currently and as you can see im completely lost. Thank You.

    Dim arrTmp As Variant
    Dim lngRow As Long
    With Worksheets("sheet3") 'adapt
    arrTmp = .Range(.Cells(1, 11), .Cells(.Rows.Count, 11).End(xlUp))
    For lngRow = 1 To UBound(arrTmp)
    If arrTmp(lngRow, 11) = "" Then arrTmp(lngRow, 11) = arrTmp(lngRow - 1, 11)
    Next
    ActiveCell.FormulaR1C1 = "=TODAY()"
    .Range(.Cells(1, 11), .Cells(UBound(arrTmp), 11)) = arrTmp
    End With

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Auto Fill Todays Date In Column K in Last Value Found in Column A

    is this a one time thing or do you want it to put a date column K when somebody enters something in Column A?
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Auto Fill Todays Date In Column K in Last Value Found in Column A

    for just the one time shot.....this should work....

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Auto Fill Todays Date In Column K in Last Value Found in Column A

    Another:

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Auto Fill Todays Date In Column K in Last Value Found in Column A

    Depending on your row count this maybe a little faster:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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