View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
DMoney DMoney is offline
external usenet poster
 
Posts: 130
Default How to transfer the length of one column to a formula in Visual ba


Selection.AutoFill Destination:=Range("j2:j"
&ActiveSheet.UsedRange.Rows.Count)
"Kanga 85" wrote:

I have a column A of variable length (say 100 cells). I have a formula in J2
which I wish to pull down for that number of cells.

Range ("J2").Select
Selection.Autofill Destination:=Range("J2:J101"), Type:=xlFillDefault.

How do I get the length of Column A to replace the term 'J101' in this
formula?

Thanks