圖一
Sub VLLOUP判斷()
Sheet44.Select
Range("F1").Select
Sheet44.[F2:G65536].ClearContents
For X = 2 To 1000
If 1 = 1 Then
M = Sheet44.Cells(X, 5) & "BGA*"
mymax = Evaluate("VLOOKUP(""" & M & """,'Symbol Pin Report'!B:C,1,FALSE)")
Sheet44.Cells(X, 6) = mymax
End If
Next
End Sub作者: owen06 時間: 2015-2-9 16:02
If IsError(mymax Then mymax = ""作者: rouber590324 時間: 2015-2-10 09:40
DEAR SIR
感謝您之提示. 我改如下加於 Sheet44.Cells(X, 6) = mymax 上方可
THANKS*10000
Sub VLLOUP判斷()
Sheet44.Select
Range("F1").Select
Sheet44.[F2:G65536].ClearContents
For X = 2 To 1000
If 1 = 1 Then
M = Sheet44.Cells(X, 5) & "BGA*"
mymax = Evaluate("VLOOKUP(""" & M & """,'Symbol Pin Report'!B:C,1,FALSE)")
If Application.IsError(mymax) = True Then mymax = ""
Sheet44.Cells(X, 6) = mymax
End If
Next
End Sub作者: cjd080 時間: 2015-2-12 15:21