با تشکر از همه دوستان عزیز که پاسخگو بودند با اجازه دوست بزرگوار amirakbar کد زیر اراده میشه برای تکمیل سوال خواسته شده
کد زیر را به یک باتن الصاق کنید
کد PHP:
On Error Resume Next
Dim Row_CountB, Clm_CountB, Row_CountC, Clm_CountC As Long
Table1 = Sheet1.Range("A1:A12")
Table2 = Sheet2.Range("A1:C12")
Row_CountB = Sheet1.Range("b1").Row
Clm_CountB = Sheet1.Range("b1").Column
For Each ab In Table1
Sheet1.Cells(Row_CountB, Clm_CountB) = Application.WorksheetFunction.VLookup(ab, Table2, 2, False)
Row_CountB = Row_CountB + 1
Next ab
Row_CountC = Sheet1.Range("c1").Row
Clm_CountC = Sheet1.Range("c1").Column
For Each ac In Table1
Sheet1.Cells(Row_CountC, Clm_CountC) = Application.WorksheetFunction.VLookup(ac, Table2, 3, False)
Row_CountC = Row_CountC + 1
Next ac
MsgBox "انجام شد"
علاقه مندی ها (Bookmarks)