VBA Vlookup different Workbook copy/paste result

SuperBaby

New Member
Joined
Apr 17, 2013
Messages
24
Hi,

(sorry for duplicate the Post, I get suggested to change title)

I would like to ask for <ACRONYM title="visual basic for applications">vba</ACRONYM> code to search the given value in another workbook and return the corresponding cell back to the original workbook. Can anyone help please?

Workbook1
ABC
1AB6675-30Confirm

<TBODY>
</TBODY>


Workbook2
ABC
1AB6675-30.300001
2AC53555-25.100002

<TBODY>
</TBODY>


I would like to have cell A1 in workbook1 to be searched in column A workbook2 and return value in column B to workbook 1 column C.

Thank you very much.​
 
Hi Zax,

Yes I understand now, I should put the workbook name as "workbook1.xlsx" full name. Then it works great now. THank you so much. Sorry for my stupid. I am very new with the vba. ;)
You're welcome,and no need to say this,that's why we're here,to help each other! :)
ZAX
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,214,629
Messages
6,120,630
Members
448,973
Latest member
ChristineC

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top