+ Reply to Thread
Results 1 to 2 of 2

I need to set a print area that adjusts with row deletion

  1. #1
    Registered User
    Join Date
    06-18-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2003
    Posts
    8

    I need to set a print area that adjusts with row deletion

    I have a VBA macro that dependent on user input goes down column A and deletes certain rows that do not apply to the user selection. However I need to be able to set the print area so that it does not cut off certain information no matter what or how many rows are deleted. I was thinking of putting a p1 at the beginning and end of each page and trying to set print area to those variables, p2 to p2 for page two and so on.. this is a 25 page worksheet..

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: I need to set a print area that adjusts with row deletion

    Set the PrintArea when the code has finished within your code. Without seeing the layout you could maybe use CurrentRegion or UsedRange
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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