Nguoiay
Thành viên hoạt động



			
		- Tham gia
 - 24/11/10
 
- Bài viết
 - 139
 
- Được thích
 - 34
 
AC sửa dùm em code này nhé:
	
	
	
		
AC tham khao câu hỏi cụ thể trong file đính kèm nha.
				
			
		PHP:
		
	
	Sub Copy_dl()
    Dim ws1 As Worksheet
    Dim ws2 As Worksheet
    Dim i As Long
    Set ws1 = Sheets("Data")
    Set ws2 = Sheets("KH")
    With ws2
    For i = 1 To 3
        If .Cells(1, 8) > 0 Or .Cells(i, 9) > 0 Then
            ws1.Cells(i, 1) = .Cells(i, 1).Value
            ws1.Cells(i, 2) = .Cells(i, 2).Value
            ws1.Cells(i, 3) = .Cells(i, 3).Value
            ws1.Cells(i, 4) = .Cells(i, 4).Value
            ws1.Cells(i, 5) = .Cells(i, 5).Value
            ws1.Cells(i, 6) = .Cells(i, 6).Value
            ws1.Cells(i, 7) = .Cells(i, 7).Value
            ws1.Cells(i, 8) = .Cells(i, 8).Value
            ws1.Cells(i, 9) = .Cells(i, 9).Value
            i = i + 1
        End If
    Next
    End With
End Sub
	
	
	  

