RattlingCarp3048
Board Regular
- Joined
- Jan 12, 2022
- Messages
- 166
- Office Version
- 365
- Platform
- Windows
Ive posted a lot about this same issue and its still ongoing. Multiple different approaches have been taken and tried. Each approach has worked for a limited amount of time but after a few days it come back to the same issue.
The issue being the formulas are not autofilling sequentially, during the autofill the rows are skipping numbers. EX: V11636 = VLOOKUP(U11638,'Yesterday''s Report'!U:V,2,0) I need to find the last row of formulas in V-Y and fill down to the last row of data in U. I keep getting closer and closer with each suggestion but still have the issue.
'Find last row in U
lastrow = Cells(Rows.Count, "U").End(xlUp).Row
'Find last row of formulas in V-Y
Range("V1").Select
Selection.End(xlDown).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.copy
'AutoFill last row of formula V-Y and last row U.
Selection.AutoFill Destination:=Range(ActiveCell.Address & lastrow) <--- this row debugs
The issue being the formulas are not autofilling sequentially, during the autofill the rows are skipping numbers. EX: V11636 = VLOOKUP(U11638,'Yesterday''s Report'!U:V,2,0) I need to find the last row of formulas in V-Y and fill down to the last row of data in U. I keep getting closer and closer with each suggestion but still have the issue.
'Find last row in U
lastrow = Cells(Rows.Count, "U").End(xlUp).Row
'Find last row of formulas in V-Y
Range("V1").Select
Selection.End(xlDown).Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.copy
'AutoFill last row of formula V-Y and last row U.
Selection.AutoFill Destination:=Range(ActiveCell.Address & lastrow) <--- this row debugs