+ Reply to Thread
Results 1 to 4 of 4

Data line does not show (only sometimes) on macro updated scatter plot

  1. #1
    Registered User
    Join Date
    01-12-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    2

    Data line does not show (only sometimes) on macro updated scatter plot

    I have a two list boxes that select a location and a person, I've written a macro that then updates the chart's range when the list box is altered, so that you can easly select the data to view and it pops up.

    Works great except sometimes the data just doesn't show up. The chart x-axis values are updated, so is the title, and when I go to select data it says that the correct range is selected, but I'm still left with a blank scatter plot. Then when I change the graph type the data apears.

    Seems to be an issue for only some of the data sets, the ones that don't work always don't work.

    Anyone ever had this problem? Below is the code attached to the list boxes.

    Thanks for any help,
    Jack Rose

    Please Login or Register  to view this content.
    Last edited by JackRose; 01-12-2012 at 09:54 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Data line does not show (only sometimes) on macro updated scatter plot

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    The usual reason is chart data in hidden rows or columns. There is a chart setting which can be ticked to overcome this.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-12-2012
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    2

    Re: Data line does not show (only sometimes) on macro updated scatter plot

    I don't think the data is hidden, I put it there, so unless it did it automatically it shouldn't be hidden. Is the chart setting you're talking about found under [Select data>Hidden and empty cells>Show hidden and empty cells ]? Because that didn't help.

    Thanks, Jack

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

    Re: Data line does not show (only sometimes) on macro updated scatter plot

    If the issue is only with some data sets then it is unlikely to be the code but rather the data and or chart.
    Can you post example workbook that illustrates the problem
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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