busted equation

bailey537

Board Regular
Joined
Jun 30, 2008
Messages
65
i am trying to use the following equation

ActiveCell.Formula = "=Vlookup(3,CAdetails,2)& Proper(JOB INPUT!D36) & If(JOB INPUT!E36=0,,UPPER(JOB INPUT!E36))& vlookup(4,CAdetails,2) & PROPER(TEXT(JOB INPUT!C35))& VLOOKUP(4,CAdetails,2) & VLOOKUP(5,CAdetails,2)"


it keep coming up with object-orientated error or application error


could anyone explain if it's something to do with the code or something else

thanks
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Remove the TEXT part, or add the missing 2nd argument for it.:)
 
Upvote 0
at the end of your vlookup you need to put ",0" (Vlookup(3,CAdetails,2,0))

...if you want an exact match. Ommit (as you have) to find approximate match if looking up value in a sorted list. :)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,782
Messages
6,121,532
Members
449,037
Latest member
tmmotairi

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