vlookup vba

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Vlookup in VBA

Vlookup in VBA

resolvedResolved · Medium Priority · Version 2007

Susanna has attended:
Excel VBA Intro Intermediate course
Taking Minutes course
Excel VBA Advanced course
Excel PowerPivot course

Vlookup in VBA

I don't manage to make VLookUp function work in VBA, when working with 2 different excel files. I have tried at least 5 or 6 different suggestion found on Internet, with no positive result. I can send the file with the code and the data if you give me an e-mail address.
Thanks a lot,
Susanna

RE: Vlookup in VBA

Hi Susanna,

Thank you for the forum question.

Yes please send me the file, so I can see what you want to do.

Please forward the file to:

info@stl-training.co.uk

Please add my name to the subject.

Thanks


Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Read more: https://www.stl-training.co.uk/post-34560-formula-shows-quarters.html #ixzz2wE8kbKnu

RE: Vlookup in VBA

Hi Susanna,

Please change the variable OrdNum from string to long:

Dim OrdNum As Long

This is the only thing you need to do to make it work.



Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Read more: https://www.stl-training.co.uk/post-34560-formula-shows-quarters.html #ixzz2wE8kbKnu

RE: Vlookup in VBA

Hi Jens,

it does work, thanks a lot!!!!!!!!!!!! So simple the solution, and I did not find it (or see it) in all my searchs in the Internet. So much time lost :-(!!!

Thanks a lot again,

Susanna

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Find cells that match a format

In Excel you may wish to find cells that contain a specific formatting such s colour.

Select Edit > Find, click on Options and then Format...choose the formatting that you want found and click on OK

Choose one of the Find buttons to find.

View all Excel hints and tips


Server loaded in 0.08 secs.