Interior.Color = rgbGold .FormatConditions.Add xlExpression, Formula1:="=COUNTIF(祝日リスト,OFFSET($B4,0,(B$3-1)*4,1,1))=1" .FormatConditions(2).Interior.Color = rgbMistyRose .FormatConditions.Add xlExpression, Formula1:="=WEEKDAY(OFFSET($B4,0,(B$3-1)*4,1,1),2)=6" ....
セル番地2").Interior.Color = Range("セル番地1").Interior.Color このよにすれば、背景色がコピーされます。 シート指定すれば、別シート間でも可能です。 上記方法はコピーできないプロパティ Range..○○○ Range(B2").Borders.LineStyle Range("B2").Borders.Weight これらプロ...
SpecialCells(xlCellTypeBlanks).Interior.Color = vbCyan End SubExcel VBA Macros Examples – Free DownloadWe’ve created a free VBA (Macros) Code Examples add-in. The add-in contains over 100 ready-to-use macro examples, including the macro examples above!