ItalianPlatinum
Well-known Member
- Joined
- Mar 23, 2017
- Messages
- 793
- Office Version
- 365
- 2019
- Platform
- Windows
Hello - running into a slight issue with my VBA where it is copying my formula too high up and not sure how to get an alternative for the results i need. Ask is pretty simply i have 7 columns with a header of data in all. first 3 columns are just data reference of what the data pertains to while the last four are formulas. so looking for the last 4 columns to copy the formula down only if data in the first column. Data starts on A11, headers on A10.
Range("D11:G11").Select
Selection.AutoFill Destination:=Range("D11:G" & Range("A" & rows.count).End(xlUp).row)
Range(Selection, Selection.End(xlDown)).Select
the VBA is above works in most scenarios but in some i see it overriding my column headers named, D,E,F,G
A | B | C | D | E | F | G |
Team 1 | Home | Away | FORMULA | FORMULA | FORMULA | FORMULA |
Team 2 | Home | Away |
Range("D11:G11").Select
Selection.AutoFill Destination:=Range("D11:G" & Range("A" & rows.count).End(xlUp).row)
Range(Selection, Selection.End(xlDown)).Select
the VBA is above works in most scenarios but in some i see it overriding my column headers named, D,E,F,G