Overview of sheet usage: The user opens the templete, I and J already have the formulas set up in them. Sheet 1 is named Epicor Export and Sheet 2 is Service Stock. The user sets up a data connection to a Engineering BOM (Bill of Materials) excel file they downloaded from Epicor ( a database ). The BOM data goes into columns A thru J and uses as many rows needed. Problem is Data Connections clears out my formulas in the rows not being used. Then the user runs a macro I set up that copies the data brought into to Sheet 2 (Service Stock). The user then has manual entries in a few columns in sheet 2. When the Engineer updates his BOM, the user exports updated excel sheet and overrids the existing one they had. Then they open the template they created and do a refresh. The formulas and conditional formatting shows them what has been updated in the BOM. when the do the refresh, it could add some rows of data. So yes that sounds like what I need. Some VBA code to automate entering the formulas each time they do a refresh for the update data connection. Column I and J have different formulas. And I would have to have it put into all the cells in those columns from 1:4000, only because I never know how many rows the first input will bring in. My formula in column I is =IFERROR((VLOOKUP([@[Part Number]],'Service Stock'!D:F,1,FALSE)), "NOT on Service List") and column J has =IF([@[Compare Service]]="Not on Service List",[@[Compare Service]],""). In column J I also have conditional formatting to turn the cell pink if something changed in the refresh. I went into VBA and inserted a new module. I used your code and put my formulas in it. But I am getting a compile error that it is not set up correctly. This is what I put, Range("I201:J4000").FormulaR1C1 = "=IFERROR((VLOOKUP([@[Part Number]],'Service Stock'!D:F,1,FALSE)), "NOT on Service List"))" range("I201:J4000").formular1c1 = "=IF([@[Compare Service]]="Not on Service List",[@[Compare Service]],""))" So what I have is incorrect, am I missing something or do I have it entered incorrectly, also can I add the conditional formatting to column J? I wish there was a way to just turn off the clear cells when the data connection is made. But Thank you so much for your help, much appreciated.