Results 1 to 12 of 12

print area defined

Threaded View

  1. #6
    Registered User
    Join Date
    09-13-2006
    Posts
    21

    Re: print area defined

    really any excel, any information, with the cells being filled from A1 through L ?.

    In a previous process, I defined the print area for the first report that was produced.

    Now I am adding different information and need to be able to redefine the print area. I have automated all of the other steps except redefining the print area. That one sure is tricky.

    The coding above sure is close.

    I appreciate your help!

    I tried this, thinking the last part needed linking, but it didn't work:

    Dim lastrow As Long

    lastrow = ActiveSheet.Cells(Rows.Count, "A").End(xlDown).Row

    ActiveSheet.PageSetup.PrintArea = ("$A$1:$H$" & lastrow)
    Last edited by up4asmile; 12-02-2014 at 06:16 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Correct VBA Code to Print Defined Print Area
    By newqueen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-27-2014, 04:31 PM
  2. Need macro to define print area after filter is run
    By ILoveStMartin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-23-2012, 02:42 PM
  3. How do you create a user defined print area in a sheet using Macros?
    By iCe222 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2012, 05:58 PM
  4. Replies: 8
    Last Post: 05-23-2007, 06:39 AM
  5. Extra Row in Defined Print Area
    By Harry Gordon in forum Excel General
    Replies: 3
    Last Post: 11-13-2005, 11:06 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