Consulting

Results 1 to 2 of 2

Thread: Solved: filling a column with formulae

  1. #1
    VBAX Tutor
    Joined
    Nov 2007
    Posts
    291
    Location

    Solved: filling a column with formulae

    Hi,

    I want to fill down an entire column with a formula in VBA is there a way to do this easily. I use Activesheet.Cells(i,10).FormulaR1C1 = "etc" to input my formula but then want it to be in the whole column.

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

    ActiveSheet.Columns(10).FormulaR1C1 = "=RC[-1]"
    [/vba]

    as an example
    ____________________________________________
    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
  •