Search code examples
excelexcel-chartsvba

Excel VBA - Making points invisible removes markers


I'm having a problem to making some points of my series (making them invisible). In the image below, you can see that it goes well until I make the point invisible. The marker's legend get all confused and set the legend to the XValues, in this case "1","2", and so on.

Is it possible to make a point invisible but keeping the original marker legend?

Points removed as well the markers


Solution

  • May I suggest to substitute the "invisible" points' values with CVErr(xlErrNA)? That way the line will still be drawn, but these points will be "ignored". Or do you need to mantain those values?