troubleshooting Question

How do I use VLOOKUP within a User Form in my VBA code.

Avatar of Tocogroup
TocogroupFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft Excel
10 Comments1 Solution8484 ViewsLast Modified:
Hi All,

I have a simple User form which comprises the following form controls:
a) Customer name (Combo box)
b) Customer address1 (Text box)
c) Customer address2  (Text box)
d) Customer address3 (Text box)
e) Town/City (Text box)
f) Postcode (Text box)

I want an event whereby selecting a customer from the Combo box dropdown list automatically populates the text box controls beneath.

I've tried using Vlookup against my Customer sheet but keep getting compilation errors. Is there a standard code that would fit this requirement ?

Thanks
Toco
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros