Vlook up macro

lucki_87

New Member
Joined
Feb 19, 2011
Messages
27
I know how to use vlookup as a function

but i need to create a macro

1) create a button that when click would perform the macro

2) the macro will perform the vlookup function

i need help!
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
For the step with autofill, if the range will be changing, how do you program the macro so that the autofill is dynamic?

I've been using a vlookup and running through a loop (redefine the ranges each time the macro runs), but I'd really like to understand how to make autofill work for me.

Jon
 
Upvote 0
I've decided to create a few variables for use in the autofill arguments. My code isn't done yet, so for now, ok to ignore my post (I'll try to delete it).

If I get stuck again, I'll start another reply.

Thanks for checking in!
Jon
 
Upvote 0

Forum statistics

Threads
1,224,524
Messages
6,179,304
Members
452,904
Latest member
CodeMasterX

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