View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Mike Mike is offline
external usenet poster
 
Posts: 3,101
Default activecell.formulaR1C1 = "='i'!R10C6" 'i is a variable

ActiveCell.FormulaR1C1 = "='" & i & "'!R10C6"

"Mahi" wrote:

i cant get the following line working in my VBA programme
please hep me
activecell.formulaR1C1 = "='i'!R10C6"
where i is a variable referencing the sheet index number of all previous
sheets
thank you
Mahi