+ Reply to Thread
Results 1 to 2 of 2

Set print area:far down it prints

Hybrid View

Directlinq Set print area:far down it... 06-19-2009, 08:26 AM
mudraker re: Set print area:far down... 06-19-2009, 10:08 AM
  1. #1
    Forum Contributor
    Join Date
    10-24-2008
    Location
    England
    Posts
    146

    Set print area:far down it prints

    At the moment this macro uses column A to detemin how far down the spredsheet is to print. Is it posible to change this macro so column B detemins how far down it prints. But i still want column A printed down to where column B is filled to. As if i change Cells(Rows.Count, 1) to Cells(Rows.Count, 2). It does not print column A.

    myrange = Cells(Rows.Count, 1).End(xlUp).Address
    ActiveSheet.PageSetup.PrintArea = "$l$1:" & myrange
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
    Many Thanks

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    re: Set print area:far down it prints

    myrange = Cells(Rows.Count, 2).End(xlUp).Address
    ActiveSheet.PageSetup.PrintArea = "$A$1:" & myrange
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ 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