Thread: vlookup in vb
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] erables40@gmail.com is offline
external usenet poster
 
Posts: 5
Default vlookup in vb

Ok here is what I am trying to do. I have a worksheet called "main"
and another called "database''
I want to lookup the value in cell B1 in "main'' worksheet in the
"database'' worksheet which is in column A.
Once found I want it to go to column CB in that same row and subtract
1 from the value there.

I know how to use vlookup to find a value but I figured to subtract 1
from that value a must use a macro, and I am stumped

How can I do this
Thanks in advance