Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Print macro help
macro beginner
I have the following set to a command button to print. So far the macro sets the print area perfectly the way I want it. I just need to know what is missing after the print area is defined to actually send it to the printer Private Sub CommandButton1_Click() Worksheets("PDSR").Activate Set c = Worksheets("PDSR").Columns("Y"). _ Find("0", LookIn:=xlValues) If Not c Is Nothing Then Worksheets("PDSR").Range(Cells(1, 1), Cells(c.Row, 12)).Select ActiveSheet.PageSetup.PrintArea = Selection.Address End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro to hide rows with a certain cell empty then set print area and print | Excel Programming | |||
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) | |||
Create a print macro that would automatically select print area? | Excel Worksheet Functions | |||
Need Help w/ Print Macro to Print All Visible Sheets (including Charts) in a Workbook | Excel Programming |