+ Reply to Thread
Results 1 to 3 of 3

How to set PrintArea to a named range

  1. #1
    Forum Contributor
    Join Date
    02-01-2021
    Location
    Manchester
    MS-Off Ver
    365
    Posts
    216

    How to set PrintArea to a named range

    I need to Print the data in a named range and have tried the following code to do this:-
    Please Login or Register  to view this content.
    When this is run the correct columns are printed but the first printed row is the row above the named range and the last printed row is the penultimate row of the named range.
    When I check the range in the Name Manager I find that the named range has been changed and its value is that of the print area.
    There are 67 rows to print and 20 columns most of which contain 6 digits so this is a squeeze on A4 whether Portrait or Landscape and perhaps something decides that's too much to print we have to trim it.
    But how can the range values be changed? I need help please!
    John

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,911

    Re: How to set PrintArea to a named range

    You should just be able to use:

    Please Login or Register  to view this content.
    Rory

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: How to set PrintArea to a named range

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 02-09-2021, 03:12 AM
  2. [SOLVED] .PageSetup.PrintArea = .Range "Need to ignore cells with formulas and zeros"
    By xlyfe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2018, 08:13 PM
  3. Listbox displaying named range B but Adding named range A to cell
    By ikkenieikke in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-05-2018, 02:27 PM
  4. [SOLVED] Compare cells to named range and create new sheets using related named range
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-10-2015, 03:35 PM
  5. Replies: 1
    Last Post: 02-27-2013, 12:00 AM
  6. [SOLVED] Determine what Named Range the Target Address is and return Named Range Name
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-18-2012, 10:49 PM
  7. [SOLVED] Deleting Range Names is Erasing My PrintArea
    By JGeniti in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-27-2005, 01: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