+ Reply to Thread
Results 1 to 4 of 4

Creating a macro to print only the sheets and portion of sheets that i select.

  1. #1
    Forum Contributor
    Join Date
    10-18-2010
    Location
    Walla Walla, Washington
    MS-Off Ver
    Excel 2007
    Posts
    124

    Creating a macro to print only the sheets and portion of sheets that i select.

    I am trying to put together a macro that will print only sheet (Engineering E10 to P53), sheet (Load Data A1 to N38) and sheet (Proposal A1 to the last cell with text). The sheet "Proposal" could possibly have multiple pages so I never know the bounderies of the print area. I would like to create a print button to execute this macro. The print button I will need on all the pages. Is this possible? Any help would be appreciated. Thank you . Happy New Year.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Creating a macro to print only the sheets and portion of sheets that i select.

    Try this workbook with your data.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    10-18-2010
    Location
    Walla Walla, Washington
    MS-Off Ver
    Excel 2007
    Posts
    124

    Re: Creating a macro to print only the sheets and portion of sheets that i select.

    Excel is giving me fits with this line. The program wont execute and I get a yellow error line on the displayed code.

    Sheets("Proposal").Select
    ActiveSheet.PageSetup.PrintArea = "A1:N" + Range("a" & Rows.Count).End(xlUp).Row
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
    IgnorePrintAreas:=False

    End Sub

    There is a runtime error 13, type mismatch.
    Last edited by cadamhill; 12-31-2012 at 01:36 PM.

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Creating a macro to print only the sheets and portion of sheets that i select.

    Sorry it should read

    Please Login or Register  to view this content.

+ Reply to 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