Don said:
do you mean?
Sheets("Sheet1").Cells(2, 3)=1
myvalue=Sheets("Sheet1").Cells(2, 3)
Ok here I go: What I am doing is to apply the cell filling color from
one Sheet1 Cells(2,3) to a correspondant Sheet2 Cells(3,2)
I do that with 2 loops assignation and at 252 Cells. It works ok but
my screen keeps on flashing for about 5 secondes. I would like to avoid
that! Here the code
Dim r, c, rM, cM As Integer
r = 3
c = 2
rM = 3
cM = 3
Do While cM < 15
Do While c < 23
Sheets("Dépenses").Select
Cells(r, c).Select
If Selection.Interior.ColorIndex = 6 Then
Sheets("DepensesM").Select
Cells(rM, cM).Select
Selection.Interior.ColorIndex = 6
Else
Selection.Interior.ColorIndex = 2
End If
c = c + 1
rM = rM + 1
Sheets("Depenses").Select
Loop
cM = cM + 1
rM = 3
r = r + 1
c = 2
Loop
Sheets("Depenses").Select
Range("B3").Select
Sheets("DepensesM").Select
Range("C3").Select
End Sub