How to retrive data using a form?

albertc30

Well-known Member
Joined
May 7, 2012
Messages
1,091
Office Version
  1. 2019
Platform
  1. Windows
Hello everybody.

I have this spreadsheet with some vlookup functions.

All works as it should but now I need to do the following;

I have designed a form and by typing a code on the first and only active field, I want to return all data relevant to this data on the other fields.

So for example;

Fields are; name, street, post code, town, contact, e-mail.

The form active field is name. All other fields are not active but I want to display the informatioin that relates to whatever name input on the active field.

How can i go about this using VBA.

My VBA knowlodge is less than basic.

Any help much apreciated.

Cheers,
Albert.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
OK, take a look at this. :Let's see if we're both on the same page.

Hello.

Not quite I'm afraid.

I want to use the form and type a customer name or select it from the dropdown list and the values (as in vlooup) will be returned on the forms other non active fields.

Hope my explanation is better this time.

Thanks for your time and help.

Albert
 
Upvote 0
OK d/l the file again and see if we're closer.
Hello.

We are indeed making progress.

Somehow I don't know why I have a sheet three.

The form is to do the same as in sheet 2.

Just type in a name on the first cell (other will only return a value if existing so therefore not active cells).

Cheers,
Albert
 
Upvote 0
Absolutelly.

I can use this one and see how it works.

Thanks.
 
Upvote 0
I've just made a couple of minor alterations to the names used. You can download the latest version.
 
Upvote 0

Forum statistics

Threads
1,216,460
Messages
6,130,771
Members
449,589
Latest member
Hana2911

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top