Formulas for Lists/Tables in Excel VBA -
trying add formula list/table programmatically via vba not sure correct syntaxis.
i need add formula looks similar below:
activesheet.range("b2")="[@turnover]/sum([turnover])"
where "turnover" name of column.
i guess there issue escaping characters, couldn't find reference or workaraounds.
you're close! when giving range formula want use:
activesheet.range("b2").formula = "=[@turnover]/sum([turnover])"
it inputs string formula range.
Comments
Post a Comment