Create Word Document and Paste Specific Sheets from Excel - Macro

b_choplick

New Member
Joined
Jul 17, 2014
Messages
9
I would like to create a Macro that creates a new blank word document, then checks values in a column of cells. The macro will check the value of each cell range, and if the value of the cell is greater than $0.00, it will select a specific worksheet in the workbook that is relevant to that specific cell's data and copy the entire sheet into the word document. For example, if A1 > $0.00, Sheet2 will be copied into the word document followed by a page break. If A2 > $0.00, Sheet 3 will be copied into the word document followed by a page break, etc. I think that I'll need an IF statement for each cell (which is fine), but am not sure how to create the word document and then copy and paste the correct sheet into the word document.
 

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)

Forum statistics

Threads
1,216,100
Messages
6,128,827
Members
449,470
Latest member
Subhash Chand

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