DEAR ALL 大大
1.圖一程式我找不出錯誤.但秀出 #N/A
2.有誰知何處錯嗎?? 煩不吝賜教 THANKS*10000
圖一
Sub SHEET12之C欄程式()
X = Sheet12.[A65536].End(xlUp).Row
For M = 2 To X
K = Sheet12.Cells(M, 1)
mymax1 = Evaluate("VLOOKUP(""" & K & """,Tbdd7603!A:B,2,FALSE)")
Sheet12.Cells(M, 3) = mymax1
Next
End Sub作者: rouber590324 時間: 2016-5-4 08:03
DEAR ALL
小弟改如下 OK 啦 THANKS
Dim value As Variant
X = Sheet12.[A65536].End(xlUp).Row
For M = 2 To X
value = Application.VLookup(Sheet12.Cells(M, 1), Sheet3.Range("A:B"), 2, 0)
Sheet12.Cells(M, 3) = value