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
 

Some videos you may like

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,230
Office Version
  1. 365
Platform
  1. Windows
Remove the TEXT part, or add the missing 2nd argument for it.:)
 

Banker1

Active Member
Joined
Mar 10, 2005
Messages
463
at the end of your vlookup you need to put ",0" (Vlookup(3,CAdetails,2,0))
 

Jon von der Heyden

MrExcel MVP, Moderator
Joined
Apr 6, 2004
Messages
10,808
Office Version
  1. 365
Platform
  1. Windows
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:

Watch MrExcel Video

Forum statistics

Threads
1,123,281
Messages
5,600,719
Members
414,401
Latest member
grenona2020

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
Top