Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Print Macro that will Print Entire worksheet except....
Hi flop
Try this Sub test() Dim sh As Worksheet For Each sh In ThisWorkbook.Worksheets If sh.Name < "Sheet A" Then sh.PrintOut End If Next End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "Flop" wrote in message ... Hi: I am trying to write a macro that will print the entire workbook except for a sheet by a certain name of "Sheet A" How can this be done? I have a general idea that a loop will be created and then a If/then command but am unsure of what the proper syntax would be. Any suggestions/help is appreciated. Thanks, |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Pivot Table macro to set print area and print details of drill down data | Excel Discussion (Misc queries) | |||
Macro to open print window and set to print entire workbook | Excel Discussion (Misc queries) | |||
Macro to print a selected range, not entire worksheet | Excel Discussion (Misc queries) | |||
Create a print macro that would automatically select print area? | Excel Worksheet Functions | |||
print a specific area within a worksheet by clicking on print? | Excel Worksheet Functions |