+ Reply to Thread
Results 1 to 4 of 4

Automatically Print Once Dynamic Print Range is Identified

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2020
    Posts
    45

    Automatically Print Once Dynamic Print Range is Identified

    Hi everyone,

    I have a workbook with 12 sheets that are reports for a specific team. Within each tab, there are four separate sections of reports. What I'd like to do is have the user click on a button directly above each section and be able to print out what is in that section (in total, there will be 48 buttons, but each prints a different section). Right now, I have the code to identify the print range, but I'm unsure how to add the print range macro(s) to a larger print function. Any help would be greatly appreciated. Thanks!

    Also, below is the code for the four sections for one team to identify the print area.

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    10-09-2012
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2020
    Posts
    45

    Re: Automatically Print Once Dynamic Print Range is Identified

    Hi,

    Just curious if anyone had any thoughts. Basically, I want to click a button and print an area that has a dynamic range, which is identified via the SetPrintRange macros above. Thanks for any help in advance!

  3. #3
    Valued Forum Contributor
    Join Date
    06-19-2010
    Location
    Holywell, N Wales, UK
    MS-Off Ver
    Excel 2013
    Posts
    470

    Re: Automatically Print Once Dynamic Print Range is Identified

    Perhaps define a sub like:

    Please Login or Register  to view this content.
    and call it from your code like:

    Please Login or Register  to view this content.
    or if you didn't want the print dialogue box perhaps use the Worksheets.PrintOut method something like:

    Please Login or Register  to view this content.
    If this was helpful then please click the small star icon at the bottom left of my post. A little appreciation goes a long way.

  4. #4
    Registered User
    Join Date
    10-09-2012
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2020
    Posts
    45

    Re: Automatically Print Once Dynamic Print Range is Identified

    Works perfect, @barryleajo! Thanks so much! I'll mark as solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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