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