Print Non Contiguous Ranges

  • Hi all -


    I would like to print a report with noncontiguous columns side by side as defined in this range

    Code
    With wsMarket
            Set rngPrint = Union(.Range("D3:D" & lngRows), .Range("O3:O" & lngRows), _
                .Range("Z3:Z" & lngRows), .Range("AK3:AK" & lngRows), .Range("AV3:AV" & lngRows), _
                .Range("BG3:BG" & lngRows), .Range("BR3:BR" & lngRows), .Range("CC3:CC" & lngRows), _
                .Range("CN3:CN" & lngRows), .Range("CY3:CY" & lngRows), .Range("DJ3:DJ" & lngRows), _
                .Range("DU3:DU" & lngRows), .Range("EF3:EF" & lngRows), .Range("EQ3:EQ" & lngRows), _
                .Range("FB3:FB" & lngRows), .Range("FM3:FM" & lngRows), .Range("FX3:FX" & lngRows))
        End With


    The page setup is defined as landscape 1 page wide as many pages tall as need to print 256 rows. But in my first test this report produced 153 pages. I would like 3-4 max. 2 would be better.


    Full code below
    TIA
    -marc



    ShowAll


    Before Print


    After Print

  • Re: Print Noncontiguous Columns In One Report


    Quote

    The page setup is defined as landscape 1 page wide as many pages tall as need to print 256 rows. But in my first test this report produced 153 pages. I would like 3-4 max. 2 would be better.

    How can anyone scale down a 153 page report down to 2-3 pages? Unless you reduce the zoom to some silly setting.

  • Re: Print Non Contiguous Ranges


    Thanks Dave
    Fortunately I wasn't connected to the printer when I first ran the macro
    The 153 pages is an error
    The expected output should be 4 pages at most


    Thanks
    -marc

  • Re: Print Non Contiguous Ranges


    Thanks Dave -


    Sorry for the delay
    Just back from well deserved vacation :thumbcoo:


    I ended up with work-around
    I setup preformatted workbook
    Copy the desired ranges from the data source to the final report


    A long way from where I started, but works well for me


    Thanks!
    -marc

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!