Hi,
Need some help modifying formula below.
It's vlookup formula which is placed into Cell H2 and the code copies the formula down to the bottom of the range. What guides the bottom of the range is the reference to the 7th column in the second line of VBA code.
I would like to modify code to look into specific Cell H4, sheet "Setup".... H4 cell have formula to count number of items from another sheet… so if value of H4 is 53, I would like code above fill down my formula 53 rows.
Any help or suggestion would be greatly appreciated
Regards,
Izet
Need some help modifying formula below.
It's vlookup formula which is placed into Cell H2 and the code copies the formula down to the bottom of the range. What guides the bottom of the range is the reference to the 7th column in the second line of VBA code.
Code:
Sub FillTable() 'Excel VBA to filldown a range
Range("H2").Value = "=VLOOKUP(G2,$A$2:$B$17,2,0)"
Range("H2:H" & Cells(Rows.Count, 7).End(xlUp).Row).FillDown
End Sub
I would like to modify code to look into specific Cell H4, sheet "Setup".... H4 cell have formula to count number of items from another sheet… so if value of H4 is 53, I would like code above fill down my formula 53 rows.
Any help or suggestion would be greatly appreciated
Regards,
Izet