Search notes:

Excel Object Model: Range.Interior

'
'   ..\..\..\runVBAFilesInOffice.vbs -excel interior -c Go
'

public sub Go()

  dim x as long, y as long

  for x = 1 to 10
  for y = 1 to 10

      cells(x, y).interior.color = rgb(25*x, 25*y, 30)

  next y
  next x
  
  activeWorkbook.saved = true

end sub
Github repository about-MS-Office-object-model, path: /Excel/Range/interior.bas
In order to remove the filling color, the interior's .pattern property must be set to xlNone:
cells(x, y).interior.pattern = xlNone

See also

The range and interior objects.

Index