vlookup error

chris2727272727

Board Regular
Joined
Jul 10, 2005
Messages
152
e = ("\\office_server\my documents\thames valley\[thames valley database.xls]employee contacts!$b$16:$i$137")


Range("d14").Value = Application.WorksheetFunction.VLookup("97324", e, 3, False)
Range("e14").Value = Application.WorksheetFunction.VLookup("97324", e, 3, False)
Range("b18").Value = Application.WorksheetFunction.VLookup("97324", e, 3, False)
Range("c18").Value = Application.WorksheetFunction.VLookup("97324", e, 3, False)
Range("d18").Value = Application.WorksheetFunction.VLookup("97324", e, 3, False)
Range("e18").Value = Application.WorksheetFunction.VLookup("97324", e, 3, False)
Range("f18").Value = Application.WorksheetFunction.VLookup("97324", e, 3, False)
Range("d14").Value = Application.WorksheetFunction.VLookup("97324", e, 3, False)


i have the above code but when it runs the below error comes up why is that

run time eroor '1004' unable to get the vlookup property of the worksheetfunction class
 
well i have seven sheets the master sheet is sheet 1 all the other sheets have the same data which was put there by pastelink what i want is when the code deletes a row on sheet 1 it deletes that same row on sheet 2 sheet 3 sheet4 sheet5 and sheet6.

The only problem might be that row 1 on sheet1 might be on row 3 on sheet2 and row 5 on sheet 3 etc etc
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,224,884
Messages
6,181,558
Members
453,053
Latest member
Kiranm13

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