+ Reply to Thread
Results 1 to 5 of 5

My macro crashes Excel?

  1. #1
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Question My macro crashes Excel?

    Hi All,

    I have comment blocked the code that causes Excel to crash. Please help?


    Please Login or Register  to view this content.
    Thank You
    Last edited by Aland2929; 07-29-2009 at 07:14 AM.

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

    Re: My macro crashes Excel?

    Can you post workbook and details of the crash
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Re: My macro crashes Excel?

    Hi Andy,
    I have attached a sample file. The macro works when you check the boxes to "Select data to plot". The error occurs when you unblock the three lines of code in the CreateChart macro and then check any of the boxes in "Select data to plot"?
    Thanks so much for your assistance.
    Attached Files Attached Files

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

    Re: My macro crashes Excel?

    The ApplyLayout appears to be the culprit.

    Try this instead

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-11-2009
    Location
    Cape Town
    MS-Off Ver
    Microsoft 365
    Posts
    854

    Smile Re: My macro crashes Excel?

    Thanks for all your effort. Problem solved.

+ 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