OldDogNewTricks
New Member
- Joined
- Jun 27, 2014
- Messages
- 21
I want my code to do two things.
1) Locate the cells in Column A that have a certain value
2) Name the cells with that certain value
All the values will be in Column A. The word I am searching for will appear three different times in the column. I need a code that will find those cells and name them. I have tried multiple different angles, and I am not sure where I am going wrong. I greatly appreciate any help you can provide!
I have Excel 2007.
Example:
The following is supposed to represent Column A in my document. I am searching for cells that have the word "Bacon" in it. The code should name the first cell containing the word, "Bacon1." The next cell containing the word should be named "Bacon2." This continues until no more cells containing "Bacon" can be found and labeled.
Toppings
Bacon
Hamburger
Chicken
Peppers
Cheese
Meats
Bacon
Hamburger
Chicken
Extras
Sauce
Cheese
Bacon
1) Locate the cells in Column A that have a certain value
2) Name the cells with that certain value
All the values will be in Column A. The word I am searching for will appear three different times in the column. I need a code that will find those cells and name them. I have tried multiple different angles, and I am not sure where I am going wrong. I greatly appreciate any help you can provide!
I have Excel 2007.
Example:
The following is supposed to represent Column A in my document. I am searching for cells that have the word "Bacon" in it. The code should name the first cell containing the word, "Bacon1." The next cell containing the word should be named "Bacon2." This continues until no more cells containing "Bacon" can be found and labeled.
Toppings
Bacon
Hamburger
Chicken
Peppers
Cheese
Meats
Bacon
Hamburger
Chicken
Extras
Sauce
Cheese
Bacon