VBA to change multiple company names to multiple owner names

shap

Board Regular
Joined
Jan 21, 2013
Messages
58
I'm looking to change multiple companies to the owners name instead. The script can work based on the entire row or we could specify the exact column.

I'm looking to do something like this;

if "Home Values" change to "Smith, John"
if "Costco" change to "Jackson, Michael"
etc.

Anyone help with this, please?! :eek:

Thanks in advance!

Using excel 2007.
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
16,666
You'd enhance your chances of getting some help, by spending a small fraction of the time your helper will invest, to provide sufficient detail to permit code to be written for your circumstances.
 

shap

Board Regular
Joined
Jan 21, 2013
Messages
58
You'd enhance your chances of getting some help, by spending a small fraction of the time your helper will invest, to provide sufficient detail to permit code to be written for your circumstances.
I was hoping someone would simply ask the questions they need to know since I do not know exactly what data or details are needed to write such code. Thanks for the response. That way I don't post a bunch of useless info that increases required reading.

To explain a bit more:

Code:
[TABLE="width: 512"]
<tbody>[TR]
[TD="class: xl65, width: 64"]REO #[/TD]
[TD="class: xl66, width: 64"]City[/TD]
[TD="class: xl65, width: 64"]Address[/TD]
[TD="class: xl65, width: 64"]Designated Date[/TD]
[TD="class: xl65, width: 64"]Zip Code[/TD]
[TD="class: xl65, width: 64"]Name of Appraiser[/TD]
[TD="class: xl66, width: 64"]MSA Description[/TD]
[TD="class: xl66, width: 64"]Loan Number of Loan[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl68"]PHOENIX[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl73"]07/09/2013[/TD]
[TD="class: xl72"]85041[/TD]
[TD="class: xl79"]Rockstart Appraisal[/TD]
[TD="class: xl68"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl76"]GLENDALE[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl77"]07/15/2013[/TD]
[TD="class: xl76"]85301[/TD]
[TD="class: xl80"]West Appraisal Group[/TD]
[TD="class: xl76"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl68"]LAVEEN[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl78"]07/08/2013[/TD]
[TD="class: xl68"]85339[/TD]
[TD="class: xl79"]Rockstart Appraisal[/TD]
[TD="class: xl81"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl76"]PHOENIX[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl77"]07/02/2013[/TD]
[TD="class: xl76"]85006[/TD]
[TD="class: xl79"]Rockstart Appraisal[/TD]
[TD="class: xl76"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl68"]PHOENIX[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl78"]07/08/2013[/TD]
[TD="class: xl68"]85015[/TD]
[TD="class: xl79"]Rockstart Appraisal[/TD]
[TD="class: xl68"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl67"]PHOENIX[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl71"]07/09/2013[/TD]
[TD="class: xl70"]85041[/TD]
[TD="class: xl79"]Rockstart Appraisal[/TD]
[TD="class: xl67"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl67"]PHOENIX[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl71"]07/09/2013[/TD]
[TD="class: xl70"]85043[/TD]
[TD="class: xl79"]Rockstart Appraisal[/TD]
[TD="class: xl67"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl68"]PHOENIX[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl78"]07/09/2013[/TD]
[TD="class: xl68"]85033[/TD]
[TD="class: xl79"]Rockstart Appraisal[/TD]
[TD="class: xl68"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl68"]PHOENIX[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl78"]07/10/2013[/TD]
[TD="class: xl68"]85009[/TD]
[TD="class: xl79"]Rockstart Appraisal[/TD]
[TD="class: xl68"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl69"]BUCKEYE[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl75"]07/08/2013[/TD]
[TD="class: xl74"]85396[/TD]
[TD="class: xl79"]Rockstart Appraisal[/TD]
[TD="class: xl69"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl76"]BUCKEYE[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl77"]07/09/2013[/TD]
[TD="class: xl76"]85326[/TD]
[TD="class: xl79"]Rockstart Appraisal[/TD]
[TD="class: xl76"]Phoenix-Mesa-Glendale, AZ Metropolitan  Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl68"]GLENDALE[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl78"]07/01/2013[/TD]
[TD="class: xl68"]85301[/TD]
[TD="class: xl80"]West Appraisal Group[/TD]
[TD="class: xl68"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl68"]GLENDALE[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl78"]07/11/2013[/TD]
[TD="class: xl68"]85308[/TD]
[TD="class: xl80"]West Appraisal Group[/TD]
[TD="class: xl68"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl68"]PHOENIX[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl73"]07/31/2013[/TD]
[TD="class: xl72"]85032[/TD]
[TD="class: xl80"]West Appraisal Group[/TD]
[TD="class: xl68"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
</tbody>[/TABLE]
In this example I would want F with header "name of appraiser" to be were the script changes names from "Rockstart Appraisal" to their owners name within the script and end result would be something like this:

Code:
[TABLE="width: 512"]
<tbody>[TR]
[TD="class: xl65, width: 64"]REO #[/TD]
[TD="class: xl66, width: 64"]City[/TD]
[TD="class: xl65, width: 64"]Address[/TD]
[TD="class: xl65, width: 64"]Designated Date[/TD]
[TD="class: xl65, width: 64"]Zip Code[/TD]
[TD="class: xl65, width: 64"]Name of Appraiser[/TD]
[TD="class: xl66, width: 64"]MSA Description[/TD]
[TD="class: xl66, width: 64"]Loan Number of Loan[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl68"]PHOENIX[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl73"]07/09/2013[/TD]
[TD="class: xl72"]85041[/TD]
[TD="class: xl79"]Smith, John[/TD]
[TD="class: xl68"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl76"]GLENDALE[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl77"]07/15/2013[/TD]
[TD="class: xl76"]85301[/TD]
[TD="class: xl80"]Carry, Jim[/TD]
[TD="class: xl76"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl68"]LAVEEN[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl78"]07/08/2013[/TD]
[TD="class: xl68"]85339[/TD]
[TD="class: xl79"]Smith, John[/TD]
[TD="class: xl81"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl76"]PHOENIX[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl77"]07/02/2013[/TD]
[TD="class: xl76"]85006[/TD]
[TD="class: xl79"]Smith, John[/TD]
[TD="class: xl76"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl68"]PHOENIX[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl78"]07/08/2013[/TD]
[TD="class: xl68"]85015[/TD]
[TD="class: xl79"]Smith, John[/TD]
[TD="class: xl68"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl67"]PHOENIX[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl71"]07/09/2013[/TD]
[TD="class: xl70"]85041[/TD]
[TD="class: xl79"]Smith, John[/TD]
[TD="class: xl67"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl67"]PHOENIX[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl71"]07/09/2013[/TD]
[TD="class: xl70"]85043[/TD]
[TD="class: xl79"]Smith, John[/TD]
[TD="class: xl67"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl68"]PHOENIX[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl78"]07/09/2013[/TD]
[TD="class: xl68"]85033[/TD]
[TD="class: xl79"]Smith, John[/TD]
[TD="class: xl68"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl68"]PHOENIX[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl78"]07/10/2013[/TD]
[TD="class: xl68"]85009[/TD]
[TD="class: xl79"]Smith, John[/TD]
[TD="class: xl68"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl69"]BUCKEYE[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl75"]07/08/2013[/TD]
[TD="class: xl74"]85396[/TD]
[TD="class: xl79"]Smith, John[/TD]
[TD="class: xl69"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl76"]BUCKEYE[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl77"]07/09/2013[/TD]
[TD="class: xl76"]85326[/TD]
[TD="class: xl79"]Smith, John[/TD]
[TD="class: xl76"]Phoenix-Mesa-Glendale, AZ Metropolitan  Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl68"]GLENDALE[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl78"]07/01/2013[/TD]
[TD="class: xl68"]85301[/TD]
[TD="class: xl80"]Carry, Jim[/TD]
[TD="class: xl68"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl68"]GLENDALE[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl78"]07/11/2013[/TD]
[TD="class: xl68"]85308[/TD]
[TD="class: xl80"]Carry, Jim[/TD]
[TD="class: xl68"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
[TR]
[TD="class: xl82"]PCD783[/TD]
[TD="class: xl68"]PHOENIX[/TD]
[TD="class: xl79"]1152 E Flint St[/TD]
[TD="class: xl73"]07/31/2013[/TD]
[TD="class: xl72"]85032[/TD]
[TD="class: xl80"]Carry, Jim[/TD]
[TD="class: xl68"]Phoenix-Mesa-Glendale, AZ Metropolitan Statistical Area[/TD]
[TD="class: xl68"]16668888888[/TD]
[/TR]
</tbody>[/TABLE]
The script OR a separate file I point to would be the source of the matching.
 

Forum statistics

Threads
1,082,139
Messages
5,363,362
Members
400,730
Latest member
cookie123

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top