View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
RichIT RichIT is offline
external usenet poster
 
Posts: 6
Default VBA Code Correction

Hi All, thanks a million in advance!

my Current code is:

Range ("B9").Select
Dim i As Integer
For i = 4 to 7
ActiveCell.FormulaR1C1 = "R[-i]C[4]"
Next i
End Sub

This does not work. Im trying to set cell B9= to A6 (in this example),
then repeat the code with i=5 meaning B9 should now = A5 (in this
example). Could anyone help please. Thanks

Rich