Hi there,
This formula works in the sheet but it won't compile in VBA due to a syntax error. Any tips? Thank you!
As it appears in the sheet: =INDIRECT(SUBSTITUTE(ADDRESS(1, COLUMN(), 4),1,"")&"$"&$A8)*(Y8/100)
As it appears in VBA: Sheets(shName).Range("C" & b + 1).Formula = "=INDIRECT(SUBSTITUTE(ADDRESS(1, COLUMN(), 4),1,"")&"$"&$A8)*(Y8/100)"
This formula works in the sheet but it won't compile in VBA due to a syntax error. Any tips? Thank you!
As it appears in the sheet: =INDIRECT(SUBSTITUTE(ADDRESS(1, COLUMN(), 4),1,"")&"$"&$A8)*(Y8/100)
As it appears in VBA: Sheets(shName).Range("C" & b + 1).Formula = "=INDIRECT(SUBSTITUTE(ADDRESS(1, COLUMN(), 4),1,"")&"$"&$A8)*(Y8/100)"