セルに条件付き書式を追加したいのですが、条件の値が別のセルになっています。
条件は次のセルに入力する必要があります。Cells(x, cellcounter)
If Cells(x, cellcounter) > 0 then Cells(y, cellcounter) color RGB(153, 199, 112)
これは私が思いついたものですが、エラーが発生します。正しい構文は何でしょうか?
Cells(cell_quote_paid, cellcounter).FormatConditions.Add(Cells(cell_pending, cellcounter), xlGreater, "=0").Interior.Color = RGB(153, 199, 112)
助けてくれてありがとう!