Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I need to do a simple VLOOKUP through visual basic. All I want to do is set one of my variables equal to the result of a formula that would normally read: =VLOOKUP($C6,Codes!$B$C,2,FALSE) Things I don't want to do: Use a cell for the formula Use R[] C[] coding Define names Is there any way to do this? Thanks! Brett |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
myVal =
Application.VLOOKUP(Range("C6").Value,Worksheets(" Codes").Range("B:C"),2,FAL SE) -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) wrote in message ups.com... Hi, I need to do a simple VLOOKUP through visual basic. All I want to do is set one of my variables equal to the result of a formula that would normally read: =VLOOKUP($C6,Codes!$B$C,2,FALSE) Things I don't want to do: Use a cell for the formula Use R[] C[] coding Define names Is there any way to do this? Thanks! Brett |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you!
Bob Phillips wrote: myVal = Application.VLOOKUP(Range("C6").Value,Worksheets(" Codes").Range("B:C"),2,FAL SE) -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) wrote in message ups.com... Hi, I need to do a simple VLOOKUP through visual basic. All I want to do is set one of my variables equal to the result of a formula that would normally read: =VLOOKUP($C6,Codes!$B$C,2,FALSE) Things I don't want to do: Use a cell for the formula Use R[] C[] coding Define names Is there any way to do this? Thanks! Brett |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VLookup a Vlookup | Excel Worksheet Functions | |||
VLOOKUP Problem | Excel Discussion (Misc queries) | |||
Using single cell reference as table array argument in Vlookup | Excel Worksheet Functions | |||
VLOOKUP Limitations | Excel Worksheet Functions | |||
vlookup data hidden within worksheet | Excel Worksheet Functions |