+ Reply to Thread
Results 1 to 4 of 4

VBA chart routine momentarily opens new sheet and displays 1st chart before adding 2n

  1. #1
    Registered User
    Join Date
    01-07-2011
    Location
    Newport News, Virginia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question VBA chart routine momentarily opens new sheet and displays 1st chart before adding 2n

    VBA project extracts data from web, displays it on sheet and then creates a chart from the data. Command button gets additional parameters from a form, adds data to the sheet, deletes all chart objects, and creates two charts side by side. Problem: before displaying charts, the routine opens a new sheet, displays an empty chart object (initial run) or the previously created chart (2nd run), then closes the sheet. Very distracting to the user. I'm stumped! Help will be appreciated. Here's the chart sub from Module 1.

    Please Login or Register  to view this content.
    Last edited by Harl; 03-23-2011 at 09:51 AM. Reason: My first post - forgot about the code tags

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,580

    Re: VBA chart routine momentarily opens new sheet and displays 1st chart before addin

    You will probably be asked by the moderators to add CODE tags to your code before any provides an answer to your question.

    When you do that there is a very quick and simple solution to the problem.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,580

    Re: VBA chart routine momentarily opens new sheet and displays 1st chart before addin

    This should do it ...

    Please Login or Register  to view this content.

    Regards

  4. #4
    Registered User
    Join Date
    01-07-2011
    Location
    Newport News, Virginia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: VBA chart routine momentarily opens new sheet and displays 1st chart before addin

    That did it! Thanks for the timely help.

+ 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