Hi guys. I have a worksheet which I use for inputting customer information. It is named “Data”.
On another worksheet (Names) I have a list of existing customer names. There are 13 rows which display Comments, Notes, Surname, First name, Address, Suburb, State, Post code, Phone, Mobile, Email, Car rego, Smoke.
New customers get their details recorded in the Data worksheet in a blank template. I have attached a sample of the template. Currently I have a VLookup in the surname cell which goes to the Names worksheet and brings up certain cells about that customer. I can see if any details have changed and if there are any special customer requirements.
The problem is the VLookup only brings up one surname and there may be several with the same surname. eg there may be six people called “Smith”.
I would like to improve this process with a macro (or perhaps there is a formula) using your help please. You may have a better suggestion but I could include an additional column (column A) with more descriptive surnames eg Smith G&S in my Names worksheet. Perhaps call it “Name”.
Could someone suggest a macro or suggest a formula that when I type in any surname in the format (say Jones B&T) it will go to the Names worksheet for Jones B&T, copy all the data and paste it transverse into my template in the Data worksheet. If no such name exists it will leave the cells blank.
Additional information you will need is: The attached template gets pasted across the spread sheet as shown. There are always 7 columns in the template. When I type a surname it will activate the macro to fill in the missing details. All pasted cells will be in order as displayed in the Names worksheet. (See attachment). The Surname is always in row 8.
Thanks guys
MalR
On another worksheet (Names) I have a list of existing customer names. There are 13 rows which display Comments, Notes, Surname, First name, Address, Suburb, State, Post code, Phone, Mobile, Email, Car rego, Smoke.
New customers get their details recorded in the Data worksheet in a blank template. I have attached a sample of the template. Currently I have a VLookup in the surname cell which goes to the Names worksheet and brings up certain cells about that customer. I can see if any details have changed and if there are any special customer requirements.
The problem is the VLookup only brings up one surname and there may be several with the same surname. eg there may be six people called “Smith”.
I would like to improve this process with a macro (or perhaps there is a formula) using your help please. You may have a better suggestion but I could include an additional column (column A) with more descriptive surnames eg Smith G&S in my Names worksheet. Perhaps call it “Name”.
Could someone suggest a macro or suggest a formula that when I type in any surname in the format (say Jones B&T) it will go to the Names worksheet for Jones B&T, copy all the data and paste it transverse into my template in the Data worksheet. If no such name exists it will leave the cells blank.
Additional information you will need is: The attached template gets pasted across the spread sheet as shown. There are always 7 columns in the template. When I type a surname it will activate the macro to fill in the missing details. All pasted cells will be in order as displayed in the Names worksheet. (See attachment). The Surname is always in row 8.
Thanks guys
MalR