I wish to colour the background of cell in an Excel sheet a certain colour and I am using the following syntax :
Set moApp = New Excel.Application
Set moWB = moApp.Workbooks.Add
i=10:j=10
moWB.Sheets("Sheet1").Cells(i, j).FormatConditions(1).Interior.ColorIndex = 35
What could be wrong?
Thanks
Set moApp = New Excel.Application
Set moWB = moApp.Workbooks.Add
i=10:j=10
moWB.Sheets("Sheet1").Cells(i, j).FormatConditions(1).Interior.ColorIndex = 35
What could be wrong?
Thanks