- 帖子
- 79
- 主題
- 2
- 精華
- 0
- 積分
- 193
- 點名
- 0
- 作業系統
- Winwos 7 64 bits
- 軟體版本
- Excel 2003/2007
- 閱讀權限
- 20
- 性別
- 男
- 來自
- TAIPEI
- 註冊時間
- 2010-8-25
- 最後登錄
- 2019-9-20
|
- Sub 資料比對()
- For r = 12 To Sheets("Sheet1").[D65536].End(xlUp).Row
-
- With Sheets("Sheet1")
- A = .Cells(r, "D").Value
- B = .Cells(r, "G").Value
- End With
-
- For rr = 1 To Sheets("Temp").[A65536].End(xlUp).Row
-
- If A = Sheets("Temp").Cells(rr, "A").Value Then
-
- If B = Sheets("Temp").Cells(rr, "B").Value Then
- Sheets("Sheet1").Cells(r, "B").Value = "V"
- Else
- Sheets("Sheet1").Cells(r, "B").Value = "?"
- End If
-
- End If
-
- Next rr
- Next r
- End Sub
複製代碼 |
|