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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -