I’m new to VBA and I need to create macro, which will find all cells in column A that contain “test”, “data” or “new” and copy all these cells to column B, starting in B2, all other cells should be copied to column C, starting in C2.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Open your VBA editor and paste below code in Sheet1 (under Microsoft Excel Object):
Ensure that mouse pointer is set somewhere inside procedure
MyMacroand hit F5 to execute code. It should do the magic you’ve asked for 🙂