+ Reply to Thread
Results 1 to 2 of 2

Problem with .PlotArea.Width

  1. #1
    Registered User
    Join Date
    02-09-2011
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    1

    Problem with .PlotArea.Width

    Dear all,

    At our firm, we have an Excel template which produces a set of charts from accounting data and automatically inserts them into a powerpoint presentation.

    The below code was used to set the visual properties of the charts, such as a width, positioning of certain elements etc.

    However, recently, we switched from Office 2003 to Office 2010 and suddenly, the following error message occurs (translated from Swedish) "The method 'width' in the object 'PlotArea' failed"

    Please Login or Register  to view this content.
    The same error occurs on the similar lines below, i.e. ".PlotArea.Height" etc., and also occurs even if I change the value to a higher number. Setting the width/height to 1 is done because otherwise I can't set the other properties right.

    Everything worked perfectly in Excel 2003.

    Now comes the really peculiar phenomenon. I noticed that after every error, when I restart the macro, it is able to do another chart. I.e., at run 1 it changes chart 1. After the fifth run, it changes chart 1,2,3,4,5 etc. Finally, when I have gone through all charts, it runs perfectly, even though I make changes to the charts etc. However, when I save and reopen the file, I am back to square one.

    You've probably noticed that I'm somewhat of a hobby programmer so please reply accordingly ;-)

    Thanks.

    //BRKJ

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430

    Re: Problem with .PlotArea.Width

    you need to post example of the template chart so we can test your code.
    Cheers
    Andy
    www.andypope.info

+ 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