View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ian[_13_] Ian[_13_] is offline
external usenet poster
 
Posts: 8
Default Cell.interior.colorindex - does not work in Excel 97

I have the following code in an excel 2000 spreadsheet:



Private Sub CommandButton1_Click()

For Each cell In Range("c5:H32")
cell.Interior.ColorIndex = 0
Next cell

End Sub




But it does not work in Excel 97.

Any ideas why? I get run time error 1004

Ian,