+ Reply to Thread
Results 1 to 2 of 2

Print Range using Name Manager VBA

  1. #1
    Registered User
    Join Date
    01-10-2014
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    57

    Print Range using Name Manager VBA

    Hi,

    So currently I have a list of print ranges within a workbook where it'll lookup the sheet to refer to and what area to 'Print Area' before printing it into pdf.

    Here's the current line I'm using:
    Please Login or Register  to view this content.
    sPrintRange = being a range, e.g. A1:B20

    My question being, is there a way of using Name Manager rather than the current method that I'm using? Ideally I was thinking of defining the area to print out using Name Manager and the macro can simple lookup the name on the Name Manager and print into PDF.

    Reason for the change is because the file is ever changing, so the range of the table could change and currently I need to manually change the range. Using Name Manager, this would change automatically.

    Thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    49,023

    Re: Print Range using Name Manager VBA

    Try:

    Please Login or Register  to view this content.
    where nrPrintRange is a Named Range containing the range address as text

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. [SOLVED] Name Manager changing my range after I run a macro
    By punter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-06-2014, 03:08 PM
  2. VBA to set print range, open box asking for print qty, print, then redefine print area
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2012, 06:43 PM
  3. Use last cell used in name range manager
    By jaslake in forum Excel General
    Replies: 3
    Last Post: 05-10-2009, 09:20 PM
  4. Excel 2007 : Print Name Manager Box?
    By laundry125 in forum Excel General
    Replies: 1
    Last Post: 08-04-2008, 08:58 PM
  5. Replies: 0
    Last Post: 01-31-2006, 03:50 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