Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50070

Copying Rows Based on Specific Cell Match

$
0
0
Master Spreadsheet.xlsm

Hello Everyone,

I need help with creating a macro. In the attached spreadsheet I have 13 tabs. 1 tab is named "Master Monthly Increase", and the others are named for each month of the year. I want to insert a vb macro that does the following: search for the value of each cell in column A in the "January" tab, and see if there's a match in column A of the "Master Monthly Increase" tab. If a match is found, I want the entire row from the January tab to be copied and pasted into the corresponding row in the "Master Monthly Increase" no matter where it's located.

A couple of things about my workbook that may affect the vb code:
- Every tab has headers
- The # of rows with content in column A of the "January" tab will steadily increase over time so I can't limit the search to a certain range, it needs to match the content of each cell of column A (excluding the header row).
- When searching column A of the "Master Monthly Increase" tab, I need the search to look in rows 2-2000

If my info is at all confusing, please don't hesitate to ask me for clarification :-)

Thanks for your time!

-Wendy

Viewing all articles
Browse latest Browse all 50070

Trending Articles