Results 1 to 6 of 6

Macro to Print Sheet on 2 pages

Threaded View

Howardc1001 Macro to Print Sheet on 2... 04-04-2020, 03:16 AM
ArdusPetus Re: Macro to Print Sheet on 2... 04-04-2020, 03:35 AM
Howardc1001 Re: Macro to Print Sheet on 2... 04-04-2020, 03:49 AM
Howardc1001 Re: Macro to Print Sheet on 2... 04-04-2020, 07:48 AM
ArdusPetus Re: Macro to Print Sheet on 2... 04-04-2020, 09:26 AM
Howardc1001 Re: Macro to Print Sheet on 2... 04-04-2020, 09:49 AM
  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,896

    Macro to Print Sheet on 2 pages

    I have 18 sheets to print which are all of the same range

    I have attached a sample workbook containing one sheet where I written a macro to print the data


    I would like the macro to print this so that it fits on two pages


    Your assistance is most appreciated

     sub PrintData()
    
    
    Dim LastRow As Long
    Application.ScreenUpdating = False
    Sheets("Sales1").Select
        LastRow = Sheets("sales1").Cells(Rows.Count, "A").End(xlUp).Row
    With ActiveSheet.PageSetup
    .PrintArea = "A2:Q" & LastRow
    .PrintGridlines = True
    .PrintTitleRows = ""
    .PrintTitleColumns = ""
    .LeftHeader = "&D&T"
    .CenterHeader = "Sales1"
    .Orientation = xlLandscape
    End With
    Application.ScreenUpdating = True
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
          End Sub
    Attached Files Attached Files
    Last edited by Howardc1001; 04-04-2020 at 03:23 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. print macro to print pages depending on cell values
    By Solvax in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-16-2018, 11:33 PM
  2. CommandButton Macro to print pages on another sheet based on cell contents
    By Anarchus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2017, 04:59 AM
  3. Print Macro for multiple but different print pages of the same sheet
    By dgarrod in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-18-2017, 02:55 PM
  4. Replies: 1
    Last Post: 03-24-2016, 05:28 PM
  5. Edit print macro to be based on number of pages in Sheet
    By KT999 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2014, 10:25 AM
  6. Replies: 2
    Last Post: 02-24-2009, 03:52 PM
  7. Replies: 2
    Last Post: 07-26-2006, 01:05 PM

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