+ Reply to Thread
Results 1 to 1 of 1

Print Cells from Name Range

  1. #1
    Registered User
    Join Date
    03-16-2014
    Location
    Oshkosh, WI
    MS-Off Ver
    Excel 2007
    Posts
    52

    Print Cells from Name Range

    Need help finishing off a macro. I'm going to do my best to explain this. I want to print out charts which get there data from changing one cell(h85). This cell has a drop down list of a bunch of categories. You change that cell and different data is displayed on the chart. I'm referring to the chart on "Comparison" tab at the bottom.

    I was hoping to by clicking the "Print All Categories" command button that it would print all the categories in the drop down menu, but only the categories with data in them. So to combat this I created a Defined Name that captures only the categories names with data not equal to zero.
    Defined Name: CategoryActivity

    I got this far and wasn't sure how to write the macro to do as follows:
    1) Select Print Area (G84:Q109)
    2) Select the first category from Defined Name range
    3) Print
    4) Repeat until all categories from the Defined Name are printed
    5) Return the old print area

    Any questions, please ask.
    Attached Files Attached Files

+ 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. Dynamic / Named Print Range To Include Another Range of Cells
    By thekrakenwakes in forum Excel General
    Replies: 0
    Last Post: 07-25-2014, 07:52 AM
  2. 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
  3. Print only range of cells that include data, even if all cells formatted
    By liam_bettinson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2012, 09:41 AM
  4. 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
  5. Print range of cells
    By leighmills33 in forum Excel General
    Replies: 6
    Last Post: 02-11-2010, 03:18 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