I have set up a macro to help with a file I work on weekly. I get a new import each week and the # of lines in the file differ from week to week. I do not know how to set it up so it autofills my column (D) to the last cell with info in the previous column (C). The way I have it set up just autofills to the range in my original file. How do I set this up so it only autofills to the last full cell in column C.
COL A COL B COL C COL D
XXXX XXXX XXXX XXXX
XXXX XXXX XXXX
XXXX XXXX XXXX
XXXX XXXX XXXX
XXXX XXXX XXXX
XXXX
This is the code that I have. How can I fix this?
Selection.AutoFill Destination:=Range("D2:D395")
Range("D2:D395").Select
Thanks for any help!!
COL A COL B COL C COL D
XXXX XXXX XXXX XXXX
XXXX XXXX XXXX
XXXX XXXX XXXX
XXXX XXXX XXXX
XXXX XXXX XXXX
XXXX
This is the code that I have. How can I fix this?
Selection.AutoFill Destination:=Range("D2:D395")
Range("D2:D395").Select
Thanks for any help!!