+ Reply to Thread
Results 1 to 3 of 3

Use VBA to define print area?

  1. #1
    Registered User
    Join Date
    06-18-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    31

    Use VBA to define print area?

    Hi, i've been trying to set a dynamic print area as a formula in the name manager to print only non-blank cells.

    Attached is an example of the spreadsheet, using the following formula: =OFFSET(Cash Flow Sheet!$A$1,,,COUNTA(Cash Flow Sheet!$A$1:$A$45),COUNTA(Cash Flow Sheet!$A$1:$AZ$1))

    Unfortunately I can't get this working.

    Instead, is it possible to do this in VBA as a 'before print' command?

    Cheers in advance
    Attached Files Attached Files
    Last edited by mailrush; 06-19-2015 at 07:36 AM.

  2. #2
    Registered User
    Join Date
    06-18-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    31

    Re: Use VBA to define print area?

    can anyone help?

  3. #3
    Registered User
    Join Date
    06-18-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    31

    Re: Use VBA to define print area?

    or autohide columns that have blank results ("")?

+ 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. Copying From Excel to PowerPoint using Print Area to define ranges
    By XCL88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-08-2015, 11:13 PM
  2. Using a Macro to define a print area and send to default printer
    By tadwilliams in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2014, 12:51 PM
  3. Define Print Area white (Rest Greyd out)
    By AV1D in forum Excel General
    Replies: 1
    Last Post: 01-19-2012, 08:22 PM
  4. define Dynamic Print Area
    By ac48 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2009, 11:33 AM
  5. [SOLVED] define a print area and name it based on info in first cell in a row...
    By Chris Salcedo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-06-2005, 09:05 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