N
Nasir.Munir
can anyone figure out what is wrong with this statement ?
I am getting compile error as " Expected: End of statement " and
Syntax error.
I am trying to use Excel function in my vba code and I got this link
which is suggesting perhaps I can use those functions by including
double quotes.
http://www.dailydoseofexcel.com/archives/2004/04/16/worksheet-formulas-in-vba-part-i/
The statement is :
testing =
"=TREND(ThisWorkbook.Worksheets(""TableFigure"").Cells(rg - 1, cg -
1), _
ThisWorkbook.Worksheets(""TableFigure"").Cells(rg, cg), _
ThisWorkbook.Worksheets(""TableFigure"").Cells(rg - 1, cg), _
ThisWorkbook.Worksheets(""T-
section"").Cells(r, c))"
The second line workbook part gets highlighted when i run the macro.
I hope I can get some help here,
thanks,
I am getting compile error as " Expected: End of statement " and
Syntax error.
I am trying to use Excel function in my vba code and I got this link
which is suggesting perhaps I can use those functions by including
double quotes.
http://www.dailydoseofexcel.com/archives/2004/04/16/worksheet-formulas-in-vba-part-i/
The statement is :
testing =
"=TREND(ThisWorkbook.Worksheets(""TableFigure"").Cells(rg - 1, cg -
1), _
ThisWorkbook.Worksheets(""TableFigure"").Cells(rg, cg), _
ThisWorkbook.Worksheets(""TableFigure"").Cells(rg - 1, cg), _
ThisWorkbook.Worksheets(""T-
section"").Cells(r, c))"
The second line workbook part gets highlighted when i run the macro.
I hope I can get some help here,
thanks,