Click here to Skip to main content
15,877,859 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Somebody help in creating a macro for excel in VBA and the question is

Q. there are different values in Column A and a part of the string has to be matched searching all the rows of the column and if that matching is found in different cells than a value is pasted in the right of that cell.

for e.g. below there's a column A some Value contains characters "GB" so the cells in excel matching that part GB , there should be a text pasted in the right cell of the column B that matched in different cells.

COLUMN A COLUMN B
4253GB75 EMP
3297TC86 FIL
534GB768 EMP
3297TC87 FIL

somebody help me out in this, give me code in VBA
Posted

1 solution

Use the tools at your disposal. Select "Record Macro" in Excel, run the commands manually, and then "Stop Recording". You can then modify your macro to your specific requirements.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900