|    | 
     ▼クリシュファー さん:こんにちわ、ちんといいます。 
if文をまとめる?ですが、 
if内の処理が1命令であれば、 
> If CheckBox1.Value = True Then 
> Cells(行, "F").Copy Sheet2.Range("C6:I7")  '<--1命令  
> End If 
 
If CheckBox1.Value = True Then Cells(行, "F").Copy Sheet2.Range("C6:I7") 
If CheckBox2.Value = True Then Cells(行, "G").Copy Sheet2.Range("K6:Q7") 
If CheckBox3.Value = True Then Cells(行, "H").Copy Sheet2.Range("S6:Y7")  
と、なります。 
 
シートの列は、A列から1,2,3 となりますので、 
F列は6です。 
 
RETU=6  とし、 
 If CheckBox1.Value = True Then Cells(行, RETU).Copy Sheet2.Range("C6:I7"): RETU=RETU+1 
 ※2命令あるときは、:でつなげていきます。 
 If CheckBox2.Value = True Then 
 Cells(行, RETU).Copy Sheet2.Range("K6:Q7"): RETU=RETU+1 
 End If 
 If CheckBox3.Value = True Then 
 Cells(行, RETU).Copy Sheet2.Range("S6:Y7") : RETU=RETU+1 
 End If 
 If CheckBox4.Value = True Then 
 Cells(行, RETU).Copy Sheet2.Range("AA6:AG7") 
 RETU=RETU+1 
 End If 
 If CheckBox5.Value = True Then 
 Cells(行, RETU).Copy Sheet2.Range("C8:I9") 
 RETU=RETU+1 
 End If 
 If CheckBox6.Value = True Then 
 Cells(行, RETU).Copy Sheet2.Range("K8:Q9")  
 RETU=RETU+1 
 End If 
 If CheckBox7.Value = True Then 
 Cells(行, RETU).Copy Sheet2.Range("S8:Y9")  
 RETU=RETU+1 
 End If 
 
勘違いしてたらごめんなさい。参考までに・・・ 
 
 | 
     
    
   |