Pit.Sweat
Full Member
Anyone out there able and willing to provide some assistance with adding VLookup in VBA for an Excel spreadsheet?
What I'm doing should be fairly simple and I imagine is really simple but Googling for a solution has left me... well, sick of Googling.
What I want to do is make use of 3 columns and a hidden sheet. The principle is simply that when a valid entry is recorded in column A (using validation) I want to use vba to do vlookup against a hidden sheet and return a value into column B.
If column A is left blank then a manual entry can be made in column B and C - hence me not simply filling column B with vlookup formulas.
I have a spreadsheet that has the following setup:
- a hidden sheet named Buyers containing a list of buyers registration numbers in column A and the company/owner name in column B
- a front sheet that is set up as a form where a seller would complete details up to and including row 23. Row 24 onwards hold Sales lines, the first 3 cells of each row being where I want to invoke the vba code.
If anyone has any idea what I'm blathering on about then please drop me a pm or a reply. I'll probably blunder through it myself eventually but I'm starting to get hassled now to finish this monstrosity.
Cheers.
Pit.
What I'm doing should be fairly simple and I imagine is really simple but Googling for a solution has left me... well, sick of Googling.
What I want to do is make use of 3 columns and a hidden sheet. The principle is simply that when a valid entry is recorded in column A (using validation) I want to use vba to do vlookup against a hidden sheet and return a value into column B.
If column A is left blank then a manual entry can be made in column B and C - hence me not simply filling column B with vlookup formulas.
I have a spreadsheet that has the following setup:
- a hidden sheet named Buyers containing a list of buyers registration numbers in column A and the company/owner name in column B
- a front sheet that is set up as a form where a seller would complete details up to and including row 23. Row 24 onwards hold Sales lines, the first 3 cells of each row being where I want to invoke the vba code.
If anyone has any idea what I'm blathering on about then please drop me a pm or a reply. I'll probably blunder through it myself eventually but I'm starting to get hassled now to finish this monstrosity.
Cheers.
Pit.