(VBA) Search and find certain text in a column, add the number from the neighboring column to the end of the text

zack8576

Active Member
Joined
Dec 27, 2021
Messages
271
Office Version
  1. 365
Platform
  1. Windows
Hello, I am new to this forum, and new to VBA.
I need to write a VBA script that can search column K and find text "C BOX(6"WALL), and add the number that is located in column L on the same row to the end of the text.
How can I do this? Any help is greatly appreciated !

Untitled.png
 
Option Explicit is a habit you should get into - it forces you to declare all variables you use throughout your code. This helps avoid many errors. To demonstrate, using the code in post #5, remove the
VBA Code:
c as Range
bit and try running it again.
Wow, so when I use Option Explicit, and a variable is not define, VBA actually tells me that this is not defined. that is awesome, so it would be a good practice to have this at the beginning of ALL the macros?
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Wow, so when I use Option Explicit, and a variable is not define, VBA actually tells me that this is not defined. that is awesome, so it would be a good practice to have this at the beginning of ALL the macros?
Absolutely.
 
Upvote 0
You're welcome Zack, and thanks for the feedback :)
Kevin you have no idea how much I appreciate your help.. Your skill in VBA is very impressive
I have one more questions posted below, which is the last VBA hurdle I need to clear on this company project
With your tremendous knowledge in VBA, you might know the answer to this one too...

 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,707
Members
448,981
Latest member
recon11bucks

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