KlayontKress
Board Regular
- Joined
- Jan 20, 2016
- Messages
- 67
- Office Version
- 2016
- Platform
- Windows
I'm looking for a macro to look for a specific Text String in a column and then append the value in another column. We have a program that exports out to a template in excel to do generate a pricing quote for our customers and We have someone manually doing adding values to the name of the product to reflect it's modifications.
For example, the column I want to search is Column E and the value I want to Append is Column A. I need a macro to search Column E for "ID=15" and then add ID15 to the end of the value in column A. I need the macro to search the entire column of E and do the Modifications as there isn't a set length to the data though it rarely goes past 30 line items.
A picture of the sheet is below. I need to be able to do this with several different values but a basic Macro to do the above will allow me to adapt it to my needs.
[TABLE="width: 522"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]Description[/TD]
[TD]Customer Description[/TD]
[TD]Qty[/TD]
[TD]Options[/TD]
[TD]Modifications[/TD]
[/TR]
[TR]
[TD]ACM8[/TD]
[TD][/TD]
[TD]1.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B33 SS1 BUTT[/TD]
[TD][/TD]
[TD]1.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B39 SS1[/TD]
[TD][/TD]
[TD]2.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]BTK8 PRT[/TD]
[TD][/TD]
[TD]2.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CM8 BLD[/TD]
[TD][/TD]
[TD]1.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CM8 WD[/TD]
[TD][/TD]
[TD]1.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SHM8 BLD[/TD]
[TD][/TD]
[TD]2.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]UF2[/TD]
[TD][/TD]
[TD]2.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]UF3[/TD]
[TD][/TD]
[TD]1.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]UF342[/TD]
[TD][/TD]
[TD]1.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]UM8 BLD[/TD]
[TD][/TD]
[TD]3.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]UM8 WD[/TD]
[TD][/TD]
[TD]3.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]W3036 BUTT[/TD]
[TD][/TD]
[TD]1.00 [/TD]
[TD]FEDEP;UPBOX[/TD]
[TD]IND12~ID=15[/TD]
[/TR]
[TR]
[TD]W3342 BUTT[/TD]
[TD][/TD]
[TD]1.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]W3624 BUTT[/TD]
[TD][/TD]
[TD]1.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]W3942[/TD]
[TD][/TD]
[TD]2.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]W3036 BUTT[/TD]
[TD][/TD]
[TD]1.00 [/TD]
[TD][/TD]
[TD]IND12~ID=15[/TD]
[/TR]
[TR]
[TD]SM8 WD[/TD]
[TD][/TD]
[TD]1.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col><col><col><col><col></colgroup>[/TABLE]
Thanks in advance,
For example, the column I want to search is Column E and the value I want to Append is Column A. I need a macro to search Column E for "ID=15" and then add ID15 to the end of the value in column A. I need the macro to search the entire column of E and do the Modifications as there isn't a set length to the data though it rarely goes past 30 line items.
A picture of the sheet is below. I need to be able to do this with several different values but a basic Macro to do the above will allow me to adapt it to my needs.
[TABLE="width: 522"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]Description[/TD]
[TD]Customer Description[/TD]
[TD]Qty[/TD]
[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T[/TD]
[TD][/TD]
[TD]1.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]W3942[/TD]
[TD][/TD]
[TD]2.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]W3036 BUTT[/TD]
[TD][/TD]
[TD]1.00 [/TD]
[TD][/TD]
[TD]IND12~ID=15[/TD]
[/TR]
[TR]
[TD]SM8 WD[/TD]
[TD][/TD]
[TD]1.00 [/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col><col><col><col><col></colgroup>[/TABLE]
Thanks in advance,