Excel Macro to Copy data from multiple worksheets to master sheet..please help.

anandt23

New Member
Joined
May 11, 2016
Messages
11
Hi
I need help in writing a macro to copy information from multiple worksheets into one master worksheet, within the same workbook.

I have multiple worksheets which are my sales invoices, and a master sheet where I would like to copy all the line items from my invoices, including the invoice number and invoice date.

In each of my invoices I would like to copy the data within the section B18:N28, but only the rows that have data, not the blank rows.
I would also like to copy the section B32:N41, also only the rows with data not the blank rows.

And paste this data into the master sheet.

But I would also like to copy the invoice date which is located in cell M10 and the Invoice Number which is in cell N11 to be pasted against each of these lines.

And I would like to repeat this for all worksheets within the workbook.

Could anyone help me with writing a macro for this please?

<colgroup><col><col><col><col><col><col><col><col><col><col><col span="2"><col></colgroup><tbody>
</tbody>
 

Some videos you may like

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

chrismacldn

New Member
Joined
Sep 11, 2015
Messages
28
Do you have a sample workbook I can work with?
Hi
I need help in writing a macro to copy information from multiple worksheets into one master worksheet, within the same workbook.

I have multiple worksheets which are my sales invoices, and a master sheet where I would like to copy all the line items from my invoices, including the invoice number and invoice date.

In each of my invoices I would like to copy the data within the section B18:N28, but only the rows that have data, not the blank rows.
I would also like to copy the section B32:N41, also only the rows with data not the blank rows.

And paste this data into the master sheet.

But I would also like to copy the invoice date which is located in cell M10 and the Invoice Number which is in cell N11 to be pasted against each of these lines.

And I would like to repeat this for all worksheets within the workbook.

Could anyone help me with writing a macro for this please?

<tbody>
</tbody>
 

anandt23

New Member
Joined
May 11, 2016
Messages
11
Hi
Thanks for the quick response. I have created a sample workbook, how can I send this to you.
 

Watch MrExcel Video

Forum statistics

Threads
1,099,795
Messages
5,470,827
Members
406,727
Latest member
Kimze

This Week's Hot Topics

Top