+ Reply to Thread
Results 1 to 5 of 5

Unneeded VBAProject Side Effect

  1. #1
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Red face Unneeded VBAProject Side Effect

    Please Login or Register  to view this content.
    The above code, which is enclosed in a Do Loop, produces a
    VBAProject (quotes.csv)
    that can be seen in the VBA Project window of the Visual Basic window.

    The above code is triggered every 6 seconds, In a 5 minute period, 50 of these have accumulated in the project window. When i stop the code, they dissapear all by them selves.

    Question:

    Do I need to insert code to delete these eroneous, codeless vba projects at each loop?
    Last edited by SDruley; 08-01-2010 at 10:52 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Unneeded VBAProject Side Effect

    You're creating a new workbook in each iteration of the loop. If you don't want them to accumulate, close them inside the loop.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Re: Unneeded VBAProject Side Effect

    shg,

    I believe that is, in fact, what is happening. I am at a loss how to delete a "VBAProject" programmatically

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Unneeded VBAProject Side Effect

    Close the workbooks, and the projects go with them (usually).

  5. #5
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Re: Unneeded VBAProject Side Effect

    I think I will programmatically close every hour then reopen.
    Thanks,shg

+ 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