Consulting

Results 1 to 3 of 3

Thread: Solved: Required to copy and paste a formula to a column range

  1. #1

    Solved: Required to copy and paste a formula to a column range

    HI,

    Need abit of help on this one.

    I would like to have a macro that will copy the formula in Column C1 and then paste to all through the column until it reaches the last row in Column A1 as this column will contain an entry for all records in the data table.

    Thanks

    BT

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    air coding

    [vba]
    Dim LastRow As Long

    With Activesheet

    LastRow = .Cells(.Rows.Count,"A").End(xlUp).Row
    .Range("C1").Autofill .Range("C1").Resize(LastRow)
    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

  3. #3
    Thank you Xld.

    BT

Posting Permissions

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