XLnew
Computer
- Dec 21, 2008
- 12
Hello All,
I have a rather strange problem in VBA.
I have a simple loop, something like:
'+++++++++++++++++++++++
For i=1 To 10
.. 'statements
.. 'statements
Range("C20").Select
ActiveCell.FormulaR1C1 = "=INDIRECT(cells(8,i))"
Next i
'+++++++++++++++++++++++
Unfortunately, it looks like VBA does not like to loop within INDIRECT command - Why so?
What is the way around this problem?
Many thanks everyone & have a wonderful year ahead.
Best Wishes,
XLNew
I have a rather strange problem in VBA.
I have a simple loop, something like:
'+++++++++++++++++++++++
For i=1 To 10
.. 'statements
.. 'statements
Range("C20").Select
ActiveCell.FormulaR1C1 = "=INDIRECT(cells(8,i))"
Next i
'+++++++++++++++++++++++
Unfortunately, it looks like VBA does not like to loop within INDIRECT command - Why so?
What is the way around this problem?
Many thanks everyone & have a wonderful year ahead.
Best Wishes,
XLNew