In Sheet1, I have data in A2:F2, follow by G2 have checkbox1 (using Control ToolBox
VBA),similiar data in A3:F3 and G3 have another checkbox2. A4:F4 and G4 have another
checkbox3
Example,
If checkbox1 box is untick, the Range("A2:F2") is Select and Cut to A14:F14 (First Row)
If checkbox2 box is tick, the Range("A3:F3") is select and Cut and paste to Sheet2 (First
Row, Example: A2:F2)
If checkbox3 is untick, the Range("A4:F4") is Select and Cut to next row of the A14:F14.
I need the coding to check if checkbox(i) is untick, the selected data will cut and paste
start from A14:F14, no matter which checkbox(i) is tick first, the A14 should be the first
row to paste the value. Program also need to check if first row of A14:F14 contain data,then
paste another value to next rows. (Below is my sample coding)
If CheckBox1.Value = False Then
'checkbox 1 is untick move to A14 (e.g.)
If myCount1 <> 0 Then
Range("$A$2:$E$2").Select
Range("$A$2:$E$2").Cut
NextRow = Range("A65536").End(xlUp).Row + 1
Range("A" & NextRow).Select
ActiveSheet.Paste
End If
Else
'checkbox1 is tick move to sheet2, range start from (A2)
'Question: If i harcoding the paste location, It will replace the value that i paste. (see below)
'Example: If checkbox2=true then, select and Cut checkbox2 Range (E.g. "A3:F3"), then activate sheet2, select Range("A2") and 'paste.
'I need to write a coding the second paste value should be the next row of A2 and following by other.
End If
VBA),similiar data in A3:F3 and G3 have another checkbox2. A4:F4 and G4 have another
checkbox3
Example,
If checkbox1 box is untick, the Range("A2:F2") is Select and Cut to A14:F14 (First Row)
If checkbox2 box is tick, the Range("A3:F3") is select and Cut and paste to Sheet2 (First
Row, Example: A2:F2)
If checkbox3 is untick, the Range("A4:F4") is Select and Cut to next row of the A14:F14.
I need the coding to check if checkbox(i) is untick, the selected data will cut and paste
start from A14:F14, no matter which checkbox(i) is tick first, the A14 should be the first
row to paste the value. Program also need to check if first row of A14:F14 contain data,then
paste another value to next rows. (Below is my sample coding)
If CheckBox1.Value = False Then
'checkbox 1 is untick move to A14 (e.g.)
If myCount1 <> 0 Then
Range("$A$2:$E$2").Select
Range("$A$2:$E$2").Cut
NextRow = Range("A65536").End(xlUp).Row + 1
Range("A" & NextRow).Select
ActiveSheet.Paste
End If
Else
'checkbox1 is tick move to sheet2, range start from (A2)
'Question: If i harcoding the paste location, It will replace the value that i paste. (see below)
'Example: If checkbox2=true then, select and Cut checkbox2 Range (E.g. "A3:F3"), then activate sheet2, select Range("A2") and 'paste.
'I need to write a coding the second paste value should be the next row of A2 and following by other.
End If