Hello
Here is what my program is supposed to do
STEP1: go trough [A1:B3] in the "sheet1" (see below):
Example of Sheet 1:
- A B
1 2 3
2 3 0
3 0 5
If he finds a value equal to 0 he will copy it and paste it in the same cell but in (sheet2):
Result in Sheet 2:
- A B
1 - -
2 - 0
3 0 -
My problem is that I don t know how to tell my program to go trough all the lines and columns
So far I only do the colums hehe
Set Info = Sheets("Sheet1").Range("A1:B3")
Set Result = Sheets("Sheet2").Range("A1:B3")
For i = 1 To Info.Count
If Info.Cells(i, 1) = "0" Then
Info.Cells(i, 1).Copy
Result.Cells(i, 1).PasteSpecial xlPasteValues
End If
Next i
If you have any advice
Thank you very much
Bookmarks