+ Reply to Thread
Results 1 to 6 of 6

Variable print area macro issues

  1. #1
    Forum Contributor
    Join Date
    05-23-2007
    Posts
    127

    Variable print area macro issues

    Hand out once more...

    Have a macro that creates a report of varying total number of rows, where final column is always "I". Struggling to include variable print area code... I have a suspicion that the setting of the printrange is working (?) but my last line is not then setup correctly to actually print it...? Please see below for current state, and I would appreciate any help!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Variable print area macro issues

    The following line doesn't look right to me
    Please Login or Register  to view this content.
    , basically the range will be from A1:IA500, is that right?

    EDIT, I just added your code to a workbook and I see that I am wrong about that. Sorry.
    Last edited by Mordred; 08-15-2013 at 01:00 PM.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  3. #3
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Variable print area macro issues

    After running your code, I did not encounter an error with what was printed. What exactly is going wrong for you?

  4. #4
    Forum Contributor
    Join Date
    05-23-2007
    Posts
    127

    Re: Variable print area macro issues

    Thanks Mordred, yes... there will never be more than 500 rows, but will always be fewer...

    Did your test successfully print?

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Variable print area macro issues

    Hi fourmurphys

    This is Code I keep in my ToolBox
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  6. #6
    Forum Contributor
    Join Date
    05-23-2007
    Posts
    127

    Re: Variable print area macro issues

    Well.... actually this does work... It was out of order in my code (too many copy/pastes). Thank you!

    I have a new issue related to the last cell always being a merged cell and only printing the top row of that... but I think I need to start a new thread for that. Will mark this one solved. Actually should mark it... "I'm an idiot".

+ 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. Variable Print Area Macro Based on Cell Value
    By cuclay in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-29-2009, 08:26 PM
  2. Setting variable, discontinuous print area in a macro
    By dkril in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2009, 03:43 PM
  3. Excel 2007 : Print Area Issues
    By jade12378 in forum Excel General
    Replies: 2
    Last Post: 05-20-2009, 05:07 AM
  4. variable print area?
    By LadyReader in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2006, 07:00 PM
  5. Variable print area
    By BOBF in forum Excel General
    Replies: 2
    Last Post: 03-22-2005, 10:06 AM

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