+ Reply to Thread
Results 1 to 7 of 7

Method 'top' of object 'plotarea' failed

  1. #1
    Registered User
    Join Date
    09-12-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    3

    Method 'top' of object 'plotarea' failed

    Hi

    Cant get this code to work.
    I havent written it myself, it's someone that worked on our company several years ago.

    It has worked says my collegs.

    I think it was written an worked with excel 2003,

    This part shall position the chart and its objects in worksheet 1
    It works until its time to arrqange the plotareaobject and I can't think out why.
    I know to little VBA. I just have to make this sheet work.

    I hope someone can help me...


    Please Login or Register  to view this content.

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

    Re: Method 'top' of object 'plotarea' failed

    The code works in xl2007 and xl2010.

    Try checking for missing references in VBE. Tools > References.

    Or post example workbook where the error is replicated.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Method 'top' of object 'plotarea' failed

    do you have all the service packs and patches applied to office?
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Registered User
    Join Date
    09-12-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Method 'top' of object 'plotarea' failed

    This is the referenses i got in VBE.
    I dont know if that is enough.

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

    Re: Method 'top' of object 'plotarea' failed

    can you post the file? replace any confidential data with random data

  6. #6
    Registered User
    Join Date
    09-12-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Method 'top' of object 'plotarea' failed

    Hi it is my company-computer and we are not allowed to update anything. We get the updates and servicepacks from our companys computer-guys.
    This code must work on everybodys computer.

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Method 'top' of object 'plotarea' failed

    the point is that is should which is why I ask if you have them installed. I believe that without sp2 installed there are a lot of chart problems in 2007-you may need to turn screenupdating back on if it was turned off in the code that calls the function, or read the top property before setting it
    Please Login or Register  to view this content.
    for instance

+ 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. Method 'Width' of object 'PlotArea' failed?
    By jmadsen in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-14-2016, 11:47 PM
  2. Method 'Run' of object '_Application' failed
    By brl8 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-21-2015, 04:27 AM
  3. Object error - method failed
    By okriskao in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2009, 02:02 AM
  4. Method Add of object Sheet failed
    By JonMitsu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2006, 03:29 AM
  5. Replies: 0
    Last Post: 09-12-2005, 09:02 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