+ Reply to Thread
Results 1 to 8 of 8

Why Excel insert thousands of shapes object into my workboot?

  1. #1
    Registered User
    Join Date
    12-31-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Why Excel insert thousands of shapes object into my workboot?

    I have a large workbook that I regularly run VBA to copy/paste and do queries, and a lot of insert and delete. Over time, the worksheet slows down to a crawl. I found that each worksheet has thousands of shapes objects named "Picture nnnnn". After deleting those objects, the workbook comes back to life.

    Do you know why and how that Excel inserts those objects? How what do I have to do to correct them?

  2. #2
    Forum Contributor
    Join Date
    04-24-2007
    Location
    NYC
    MS-Off Ver
    2k3/2k7/2010
    Posts
    270

    Re: Why Excel insert thousands of shapes object into my workboot?

    Your macro is creating that picture, check your macro to see how it is being created and add code to delete it once it is done using the picture.

  3. #3
    Registered User
    Join Date
    12-31-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Why Excel insert thousands of shapes object into my workboot?

    Quote Originally Posted by slx View Post
    Your macro is creating that picture, check your macro to see how it is being created and add code to delete it once it is done using the picture.
    My codes do not explicit create shapes object.

    A typical routine involves copy and paste the data from a downloaded csv file and create a temporary worksheet where I manipulate the data with queries. Then it copies the data to the main sheet and then deleted the temporary one.

  4. #4
    Forum Contributor
    Join Date
    04-24-2007
    Location
    NYC
    MS-Off Ver
    2k3/2k7/2010
    Posts
    270

    Re: Why Excel insert thousands of shapes object into my workboot?

    There is more than 1 way to create an object, one of the ways is using copy.

  5. #5
    Registered User
    Join Date
    12-31-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Why Excel insert thousands of shapes object into my workboot?

    Quote Originally Posted by slx View Post
    There is more than 1 way to create an object, one of the ways is using copy.
    But the source of all the copying is downloaded csv files, or text files. Is there embedded object in those files?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Why Excel insert thousands of shapes object into my workboot?

    Don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Why Excel insert thousands of shapes object into my workboot?

    Is this accumulation of objects just during one session or is it cumulative from session to session?
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  8. #8
    Registered User
    Join Date
    12-31-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Why Excel insert thousands of shapes object into my workboot?

    It was over a period of time.

    I first noticed that the macro would hang up (Not responding) at a certain point. I had to save and quit before that point to continue. Then I notice that every click take a long time delay for the screen to react. I wrote a routine to find the number of shapes and found over 50000 of them in one sheet. I went ahead and wrote the routine to delete them and it's working great now.

    Just want to know why.

+ 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. insert shapes
    By mehretuaVegas in forum Excel General
    Replies: 2
    Last Post: 12-21-2013, 03:27 PM
  2. [SOLVED] Shapes vs oleobjects vs oleobject.object ( for commandbutton properties )
    By Xeliax in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2013, 04:17 PM
  3. [SOLVED] Attempting to insert multiple thousands of Hyperlinks to corresponding folders
    By Ethanrholt in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-29-2013, 09:44 AM
  4. Replies: 0
    Last Post: 10-11-2012, 04:18 AM
  5. Shapes object events?
    By Dr.Ile in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-07-2006, 07:10 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