+ Reply to Thread
Results 1 to 5 of 5

Set Print Area to named range before saving as PDF and attaching in new email

  1. #1
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Set Print Area to named range before saving as PDF and attaching in new email

    Hi,

    Another questions on this piece of code; how can I set the print area as List where list is a named range.

    I don't want this to always be the print area, simply for when I run this code.

    If there is something I can use at the start of the code to set print area = List that would be helpful so I can move into other code.

    Thanks

    Dave


    Please Login or Register  to view this content.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Set Print Area to named range before saving as PDF and attaching in new email

    how about:

    Please Login or Register  to view this content.
    if you want to clear it again at the end then:

    Please Login or Register  to view this content.
    Last edited by Arkadi; 10-06-2016 at 09:24 AM.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Set Print Area to named range before saving as PDF and attaching in new email

    Hi,

    Thanks for the advice, however I've added to my test workbook and it's not working.

    Can you have a look to advise please?

    Regards

    Dave
    Attached Files Attached Files

  4. #4
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Set Print Area to named range before saving as PDF and attaching in new email

    Whoops... my bad, it just needs the name so try this to set the area:

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Set Print Area to named range before saving as PDF and attaching in new email

    Boom nailed it, one of those days that I couldn't spot that either!

    Thanks for your help

+ 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. Set print area of selected range then print preview if ok then print the document!
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2014, 07:10 AM
  2. [SOLVED] Saving a Print Area as PDF onto a user defined folder location
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-10-2013, 10:27 AM
  3. 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
  4. Modify code to email a selected range or ("print area") in lieu of ActiveSheet
    By robertse in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-15-2010, 05:15 PM
  5. [SOLVED] Ranges, adding a column to a named print range then saving the file
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2006, 08:45 PM
  6. [SOLVED] email print area
    By Raven506 in forum Excel General
    Replies: 1
    Last Post: 10-09-2005, 05:05 PM
  7. Saving print area as file
    By TexMas in forum Excel General
    Replies: 2
    Last Post: 03-31-2005, 03: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