0

I have loop where I work with different cells. As part of this loop I want to set cell color, however I am forced to use the full cell address instead of just a variable assigned. Below is a sample in one iteration of the loop.

Doesn't work with "Run-time error '424': Object required

ColorMe = SheetCheck.Cells(1, 1) 'ColorMe is the value in the Cell 1,1
ColorMe.Interior.Color = vbGreen

works

SheetCheck.Cells(1, 1).Interior.Color = vbGreen
OrigamiEye
  • 864
  • 1
  • 12
  • 31

0 Answers0