| 
    
     |  | ▼Asaki さん: >IROC さんのご回答のマクロは、きちんと理解されていますか?
 >理解されていれば、簡単に応用できます。
 >分からないところがあれば、ヘルプで調べたり、再度質問するなりするべきでしょう。
 >なお、VBAのヘルプはインストールされていないかもしれませんので、
 >今後もマクロを利用されるのであれば、インストールすることをお勧めします。
 
 ありがとうございます。質問させていただきます。よろしくお願いします
 
 Dim i As Long
 
 For i = 2 To Range("A65536").End(xlUp).Row
 If WorksheetFunction.CountIf(Range(Cells(i, 2), Cells(i, 4)), 1) > 0  Then   Cells(i, 12).Value = "○"
 If WorksheetFunction.CountIf(Range(Cells(i, 5), Cells(i, 7)), 1) > 0 Then   Cells(i, 12).Value = "○"
 If WorksheetFunction.CountIf(Range(Cells(i, 8), Cells(i, 10)), 1) > 0 Then   Cells(i, 13).Value = "○"
 if Cells(i,12) ="",cells(i,13) ="",cells(i,14) ="" then Cells(i,17).value="★”
 If Cells(i,12)="○",Cells(i,13)="",Cells(i,14)="" Then Cells(i,15).value="★”
 If Cells(i,12)="○",Cells(i,13)="",Cells(i,14)="○" Then Cells(i,15).value="★”
 If Cells(i,12)="○",Cells(i,13)="○",Cells(i,14)="" Then Cells(i,16).value="★”
 If Cells(i,12)="",Cells(i,13)="○",Cells(i,14)="○" Then Cells(i,16).value="★”
 If Cells(i,12)="",Cells(i,13)="○",Cells(i,14)="" Then Cells(i,16).value="★”
 If Cells(i,12)="○",Cells(i,13)="○",Cells(i,14)="○" Then Cells(i,16).value="★”
 
 Next i
 
 実行したらコンパイルエラーになりましたのでおかしいところを教えて下さい。
 
 |  |