VBA to FIND, COPY, PASTE CELL

gcr114

New Member
Joined
Jul 8, 2011
Messages
3
Hello all! This is my first post! I have read a lot of posts on MrExcel and it's been very helpful! However, I haven't been able to find a solution to my current problem. :mad:

I have an excel file (can't share the exact file due to privacy issues) but basically its a document with several columns of information. For example:

Column A = Groups
Column B = Group Leader
Column C = 2nd Group Leader

Example:

Column A Column B Column C
A Joe Mike
B Josh Joe
C Mike Joe
D Joe Josh

I need to write a macro that will go through and on a new work sheet list each member and the groups that each member belongs to, it can be two seperate marcos, as Group Leader and Group Member needs to be seperate

Example:


Column A(Group Leader) Column B
Joe E
B

Josh B

Mike C

____________________________________

Column A(Group Member) Column B
Joe B
C

Josh D

Mike A

Then this would be repeated for group members. Sorry if it's confusing, and thanks in advance!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi,

Could you look at the FAQ for the forum to see how to post examples from a worksheet in a form where readers can see clearly which columns, which cells etc. the various items are in and where you want them to be.

The actual data you have provided, Joe etc. are fine as example. I just can't make much sense of your desired layouts.
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,629
Members
452,933
Latest member
patv

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