トップページ > プログラム > 2016年11月28日 > JmUquKRk

書き込み順位&時間帯一覧

54 位/170 ID中時間01234567891011121314151617181920212223Total
書き込み数0000000000000000000000011



使用した名前一覧書き込んだスレッド一覧
デフォルトの名無しさん
Excel VBA 質問スレ Part44 [無断転載禁止]©2ch.net

書き込みレス一覧

Excel VBA 質問スレ Part44 [無断転載禁止]©2ch.net
188 :デフォルトの名無しさん[sage]:2016/11/28(月) 23:25:03.69 ID:JmUquKRk
シンプルにしてみた

Sub CellColor()
Dim Cell As Range
For Each Cell In Selection
If Cell.ColorIndex = 3 then Dec Cell
Next
End Sub

Sub Dec(Cell As Range)
Dim flg1 as boolean
Dim flg2 as boolean

If 1 < Cell.column then flg1 = (Cell(1,0).ColorIndex = 6)
If Cell.Column < Columns.Count then flg2 = (Cell(1,2).ColorIndex = 6)

If flg1 or flg2 Then Cell.ColorIndex = 43
End Sub


※このページは、『2ちゃんねる』の書き込みを基に自動生成したものです。オリジナルはリンク先の2ちゃんねるの書き込みです。
※このサイトでオリジナルの書き込みについては対応できません。
※何か問題のある場合はメールをしてください。対応します。