thunder_anger
Board Regular
- Joined
- Sep 27, 2009
- Messages
- 206
Dear all
i have here two worksheets one named HostValues and another one named RealValues
when i check the hostvalues sheet i formate some cells with red
the required is whenever i color a cell with red it moves the value to the other sheet
i tried to write a code but didn't work
any help
i have here two worksheets one named HostValues and another one named RealValues
when i check the hostvalues sheet i formate some cells with red
the required is whenever i color a cell with red it moves the value to the other sheet
i tried to write a code but didn't work
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim MystRng As Range
Dim dCell As Range
Set MystRng = Sheets("HostValues").Range("D3:D1100")
LR = Sheets("RealValues").Range("A", Rows.Count).End(xlUp).Row
For Each dCell In MystRng
If dCell.Interior.ColorIndex = 3 Then
dCell.Copy
*****
***** ' i stopped here because i tried so much things and did not work
End Sub