Consulting

Results 1 to 2 of 2

Thread: filling date

  1. #1
    VBAX Contributor
    Joined
    Apr 2012
    Posts
    107
    Location

    filling date

    colume A is filling with dates from A2. Last date is at A10=10 Apr. Plse write a macro to fill the next 2 blank cells A11=11 Apr and
    A12=12 Apr.
    Thank you

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]
    With Activesheet

    lastrow = .Cells(.Rows.Count, "A").End(xlUp).Row
    .Cells(lastrow, "A").Autofill .Cells(lastrow, "A").Resize(3)
    End With[/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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