Print Macro

G

Guest

Guest
I'm new at creating macros and would like help at writing a macro for an excel workbook that has 3 sheets. The first sheet is basically a database of values. The second and third sheets are formatted documents. I would like have the macro print sheet 2 once and sheet 3 a variable number of times depending on the value in column "F" of sheet 1. Any help would be greatly appreciated.

Thanks,

Mark
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Great! Thanks for the help. Now onto the next part of the problem. I figured out how to set the ActivePrinter to the special printer I want to print these out to, but how do I save what printer it was before so that I can return the printer back to what the default printer was?

Also, how would I modify the macro to loop thru several lines of information in the database (to print several sets of the reports)

Thanks again!

Mark
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,034
Members
448,543
Latest member
MartinLarkin

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