browse for excel file and getting its path then Vlookup Code for entire column using this file path

bebo201022

New Member
Joined
Sep 24, 2017
Messages
3
0 down vote
I am not good in writing full code till now and I need your help to create a code for browsing for any file and get this file path and using it in <code>VLOOKUP</code> formula which will be used in all non blank cells in the entire column of sheet 1.
More info:
Sheet2:
<code>A1:A5....(1,2,3,4,5)
B1:B5....(A,B,C,D,E)
</code> Sheet1:
<code>A1: 1
A2: 2
A3: 3
A4: 4
A5: 5
B1= Vlookup(A1,"path of sheet2",$A$1:$B$5,2,False)
B2= Vlookup(A2,"path of sheet2",$A$1:$B$5,2,False)
B3= Vlookup(A3,"path of sheet2",$A$1:$B$5,2,False)
B4= Vlookup(A4,"path of sheet2",$A$1:$B$5,2,False)
B5= Vlookup(A5,"path of sheet2",$A$1:$B$5,2,False)
</code>

<tbody>
</tbody>
 
Last edited by a moderator:

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,215,051
Messages
6,122,871
Members
449,097
Latest member
dbomb1414

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