+ Reply to Thread
Results 1 to 7 of 7

Printing Worksheets that are in a Named Range

  1. #1
    Registered User
    Join Date
    03-28-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    Printing Worksheets that are in a Named Range

    Hello,

    I have a workbook with a worksheet that lists worksheets names a user has selected from a userform for printing. The worksheets the user selected are in a named range, "PrintSheets". With VBA, I am trying to figure out how to print each of the sheets listed in "PrintSheets". Any suggestions?

    Thank you very much!
    Last edited by learning_vba; 11-04-2011 at 11:22 AM. Reason: Solved thanks to mojo249

  2. #2
    Forum Contributor
    Join Date
    05-09-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    315

    Re: Printing Worksheets that are in a Named Range

    You should be able to just print the named range:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-28-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Printing Worksheets that are in a Named Range

    Quote Originally Posted by mojo249 View Post
    You should be able to just print the named range:

    Please Login or Register  to view this content.
    Thank you for your suggestion, but this is not quite what I am looking for. I do not want to print the named range, I want to print each of the sheets that are listed in the named range. Any other tips that may work?

  4. #4
    Forum Contributor
    Join Date
    05-09-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    315

    Re: Printing Worksheets that are in a Named Range

    I don't see the difference. Unless the range referred to in "PrintSheets" is less than the used range. In which case, why don't you set the named range to be whatever range you want to print out? Isn't that the point of having "PrintSheets"?

  5. #5
    Registered User
    Join Date
    03-28-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Printing Worksheets that are in a Named Range

    Quote Originally Posted by mojo249 View Post
    I don't see the difference. Unless the range referred to in "PrintSheets" is less than the used range. In which case, why don't you set the named range to be whatever range you want to print out? Isn't that the point of having "PrintSheets"?
    It is not the range that I want printed out. Each cell in the named range is the name of a particular worksheet. So I want to print out each worksheet that is listed in the named range. Perhaps I am going about this the wrong way. Let me better explain what I have done thus far and perhaps I may need to change the way I have it setup.

    I have a userform that contains a multiselect listbox that is populated with all the worksheet names in the workbook. I want the user to select whichever worksheets they want to print, and then have those and only those print. The way I thought I would do this is by taking the worksheets selected by the user in the userfomr listbox, and then output those selections to a temporary holding worksheet. Then I name the range with the worksheet names, and then somehow use that named range to print the individual sheets. Does this sound like a good method of doing this?

    Thanks.

  6. #6
    Forum Contributor
    Join Date
    05-09-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    315

    Re: Printing Worksheets that are in a Named Range

    Ah I see. Try this

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-28-2010
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Printing Worksheets that are in a Named Range

    Quote Originally Posted by mojo249 View Post
    Ah I see. Try this

    Please Login or Register  to view this content.
    Thanks mojo249- this works!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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