Vlookup Macro

  • Thread starter Thread starter Ann
  • Start date Start date
A

Ann

Dear whoever can help..

Is it possible to create a Macro for a VLookUp that I use
everyday or am I just being too damned lazy???

Ann
 
Ann,

Very simple. This code snippet creates a VLOOKUP that looks up the 3 value
in table H1:K100 for a lookup value in A1. Just adapt to suit

ActiveCell.Formula = "=VLOOKUP(A1,H1:K100,3,FALSE)"

You could easily create this as a macro and assign it to a toolbar button.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
I think you're being too lazy!

To make the macro general enough to reuse, I would think you'd have to pass it
the same info that =vlookup() needs.

On the other hand, if you're doing something everyday that is completely
repetitive, then maybe you could have your macro add the formula/formatting/and
all the other stuff, too.

There's a fine line between just regular lazy and too lazy!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

copy paste values macro 5
vlookup with numbers 10
Using activecell in vlookup 3
VLOOKUP and date issue 1
Vlookup problem 1
using vlookup for multiple files 6
Vlookup function macro 2
LOOK UP/VLOOKUP 6

Back
Top