I have created a loop to create new columns until there is not next in the next columns. However I am trying to include a formula in this loop and I cannot get the drag down to be based on the active column. Right now i have:
ActiveCell.Select
Selection.Copy
Selection.AutoFill Destination:=Range("D5:D226")
Range("D5:D150").Select
I want the Range to be something like ("Activecell.Column:ActiveCell.Column"). I have also tried Range("5:150)" to capture only the rows I want my formula filled to, but that doesn't work. The goal is that I can use the loop to drag the formula down all columns with an active formula without having to alter every single column (which won't work because this will be used on data with different amounts of columns).
I have tried searching a bunch of forums but have not found anything like this.
Bookmarks