Hi,
New to excel and have been working on an issue and making progress. I am looking to populate a macro with a concatenate formula but it appears too large to run in the formula. The working code is this
Sub FillCalc_down()
Sheets("Item Upload Template").Range("A3").Formula = "=IF(CONCATENATE('Item List'!A2,'Item List'!B2,'Item List'!C2,'Item List'!D2)=CONCATENATE('Item List Checksheet'!A2,'Item List Checksheet'!B2,'Item List Checksheet'!C2,'Item List Checksheet'!D2),""No Change"",""Upload"")"
Sheets("Item Upload Template").Select
Sheets("Item Upload Template").Range("A3:BY3").AutoFill Destination:=Range("A3:BY12000")
End Sub
The problem is I need to compare the range from A3:BY3 (77columns each) on each of these sheets (and each CONCATENATE) and if I put that it the macro script turns red and wont run because it run onto another line and states Compile Error: Expected end of Statement. Basically it seems there is a limit to the line width of the editor and dropping it on a new line creates a new statement. Any guidance is appreciated!
New to excel and have been working on an issue and making progress. I am looking to populate a macro with a concatenate formula but it appears too large to run in the formula. The working code is this
Sub FillCalc_down()
Sheets("Item Upload Template").Range("A3").Formula = "=IF(CONCATENATE('Item List'!A2,'Item List'!B2,'Item List'!C2,'Item List'!D2)=CONCATENATE('Item List Checksheet'!A2,'Item List Checksheet'!B2,'Item List Checksheet'!C2,'Item List Checksheet'!D2),""No Change"",""Upload"")"
Sheets("Item Upload Template").Select
Sheets("Item Upload Template").Range("A3:BY3").AutoFill Destination:=Range("A3:BY12000")
End Sub
The problem is I need to compare the range from A3:BY3 (77columns each) on each of these sheets (and each CONCATENATE) and if I put that it the macro script turns red and wont run because it run onto another line and states Compile Error: Expected end of Statement. Basically it seems there is a limit to the line width of the editor and dropping it on a new line creates a new statement. Any guidance is appreciated!