98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Vlookup in VBA
Vlookup in VBA
Resolved · 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
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
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Find cells that match a formatIn Excel you may wish to find cells that contain a specific formatting such s colour. |