Closed Thread
Results 1 to 3 of 3

[SOLVED] Print

  1. #1
    Mark
    Guest

    [SOLVED] Print

    I have a workbook with 3 sheets.
    how can i add a command button to sheet one to print all
    three sheets

    thanks

  2. #2
    OJ
    Guest

    Re: Print

    Hi,
    1. Right click the toolbar area in Excel.
    2. Select Forms Toolbar.
    3. Select Command Button on the toolbar
    4. Draw the button on the worksheet by holding down the left mouse
    button and dragging.
    5. Click Edit in the Dialogue Button
    6. Enter the following code

    Sub Button1_Click()
    Dim intInc As Integer

    With ThisWorkbook
    For intInc = 1 To .Sheets.Count
    .Sheets(intInc).PrintOut Copies:=1, Collate:=True
    Next intInc
    End With
    End Sub



    Hth,
    Oli


  3. #3
    Guest

    Re: Print

    Thanks for this it worked a treat
    >-----Original Message-----
    >Hi,
    >1. Right click the toolbar area in Excel.
    >2. Select Forms Toolbar.
    >3. Select Command Button on the toolbar
    >4. Draw the button on the worksheet by holding down the

    left mouse
    >button and dragging.
    >5. Click Edit in the Dialogue Button
    >6. Enter the following code
    >
    >Sub Button1_Click()
    >Dim intInc As Integer
    >
    >With ThisWorkbook
    > For intInc = 1 To .Sheets.Count
    > .Sheets(intInc).PrintOut Copies:=1, Collate:=True
    > Next intInc
    >End With
    >End Sub
    >
    >
    >
    >Hth,
    >Oli
    >
    >.
    >


Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1