+ Reply to Thread
Results 1 to 2 of 2

Get Actual Print Area of an Excel Sheet (Through VBA)

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-21-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    110

    Get Actual Print Area of an Excel Sheet (Through VBA)

    Hi All,

    How can I get an actual Used Range (including charts) in Excel?

    The problem is, user will NOT define any print area. But he should get a picture of all used range (including charts) in clipboard:

    If I do like,
    Sheet1.PageLayout.PrintArea
    It give me a blank string.

    If I do like,
    Sheet1.UsedRange.Address
    , It doesn't consider the charts which are at bottom.

    Please suggest a work-around.

    Thanks.

  2. #2
    Registered User
    Join Date
    03-30-2014
    Location
    Suzhou,China
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: Get Actual Print Area of an Excel Sheet (Through VBA)

    If there is only one shape(chart) in sheet1 ,then try this:

    sheet1.range(sheet1.UsedRange,sheet1.Shapes(1).BottomRightCell).Address
    Welcome to China,Welcome to Suzhou...And,我是来学英文的。

+ 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. Replies: 1
    Last Post: 02-12-2013, 12:16 PM
  2. [SOLVED] Formula for Replacing Codes Indicating Geographic Area with Actual Name of Area
    By andywozhere in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-10-2012, 08:53 AM
  3. Find print area of excel sheet
    By Jade Nortan in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2010, 10:26 AM
  4. Excel-menu feature to maximize print area of sheet
    By Skram in forum Excel General
    Replies: 0
    Last Post: 06-13-2006, 11:00 AM
  5. Replies: 1
    Last Post: 11-24-2005, 07:29 AM

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