Hi,
I want my macro to populate column 'N30:N30000' with my formula.
However, for some reason it won't compile the macro due to ' Syntax error'. Any ideas how to resolve this:
Sub FillDown() Dim strFormulas(1) As Variant
With ThisWorkbook.Sheets("Sheet1")
strFormulas(1) = "=IF(ISNUMBER(MATCH("*|"&LEFT(D5,8),$E$1:$E$100,0)),LEFT(D5,8),"No match")"
.Range("N30").Formula = strFormulas
.Range("N30:N30000").FillDown
End With
End Sub
I want my macro to populate column 'N30:N30000' with my formula.
However, for some reason it won't compile the macro due to ' Syntax error'. Any ideas how to resolve this:
Sub FillDown() Dim strFormulas(1) As Variant
With ThisWorkbook.Sheets("Sheet1")
strFormulas(1) = "=IF(ISNUMBER(MATCH("*|"&LEFT(D5,8),$E$1:$E$100,0)),LEFT(D5,8),"No match")"
.Range("N30").Formula = strFormulas
.Range("N30:N30000").FillDown
End With
End Sub