cells function
A formula has to look lie it would on a worksheet such as "=D11"
You can modify your code like this
ActiveCell.Formula = "=" & (Cells(11, Sheets.Count + 1).address)
or
ActiveCell.Formula = "=K" & (Sheets.Count + 1)
"Raul Sousa" wrote:
The resulto of the code
ActiveCell.Formula = "=" & (Cells(11, Sheets.Count + 1))
is : =
But, I need it to be equal to :
= D11, or E11, depending on the number of sheets
What am I doing wrong?
|