Hi,
First of all we can tidy it up a little to make it clearer what's going on.
You don't need all of those ActiveWindow.ScrollRow calls which are recordings of you scrolling up and down the window. Once they're removed, your code becomes:
Code:
Selection.AutoFill Destination:=Range("R2:R107394")
Range("R2:R107394").Select
Columns("R:R").ColumnWidth = 11.29
Quote:
|
In 3 separate places in this macro I autofilled a formula by double clicking to get it to the last row....figuring it would do what I did instead of save the actual place. Instead, every time I run this macro, it autofills to 107,xxx and that's not what I want. How do I manipulate this to do what I want?
|
You'll have to add some logic to tell it to fill to the "last row". When you say "last row", do you mean the last row on the worksheet, or do you mean the last
used row in the worksheet?
Hope that helps..