• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Macro to print excel sheets base on check list

Hi,
I have excel dashboard that i used to modify different wb. i have another customer invoices wb with lot of sheets. i try to create user form to print sheets with Option of Select file, Check-Box lists of all Sheets form Source file,Multiple Copies of each page, Preview, Select/UnSelect all sheet ,Editable page & Add Printer. Most Important i like to print pause for 20 second after print 10 pages. I have not too good in vba to done it myself.
If any one know how to done this, Please Help Me.

Thank You!
 
As a little tweek how can you change "Copies:=1" to a value other than 1 ?
Hi,

You can either change it in VBA by simply replacing 1 with the number of copies you want:
Code:
Sub Printselected()

    On Error Resume Next

    Dim i As Integer

    For i = 2 To Sheets.Count
        If Sheets(1).Shapes("Check Box " & i).ControlFormat.Value = 1 Then
            Sheets(i).PrintOut Copies:=3
        End If
    Next i

    Sheets(1).Activate

End Sub

or have it look the number of copies in a cell like "B1":
Code:
Copies:=Range("B1").Value
 

Attachments

Back
Top