aliikhlaq2006
New Member
- Joined
- Apr 4, 2012
- Messages
- 44
Pseudo Code
If any cell between (A1:D9) have color orange than
Select the row of that orange cell and copy to the other sheet first available empty row and put current date to right side of copy row
I have write some code but its not working
Sub copy_next_Row2()
If Sheet1.Range("D1:D9").Interior.Color = RGB(255, 192, 0) Then
Sheet1.Range("A1:D9").Copy
Sheet2.Range("A" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial (xlPasteValues)
Sheet2.Range("E" & Rows.Count).End(xlUp).Offset(1, 0).Value = Date
Else
MsgBox "There is no change"
End If
End Sub
If any cell between (A1:D9) have color orange than
Select the row of that orange cell and copy to the other sheet first available empty row and put current date to right side of copy row
I have write some code but its not working
Sub copy_next_Row2()
If Sheet1.Range("D1:D9").Interior.Color = RGB(255, 192, 0) Then
Sheet1.Range("A1:D9").Copy
Sheet2.Range("A" & Rows.Count).End(xlUp).Offset(1, 0).PasteSpecial (xlPasteValues)
Sheet2.Range("E" & Rows.Count).End(xlUp).Offset(1, 0).Value = Date
Else
MsgBox "There is no change"
End If
End Sub