79663334

Date: 2025-06-12 10:25:02
Score: 1
Natty:
Report link

Make sure at least one data series is using the Primary Axis. Here's how to do it in VBA:

ActiveChart.FullSeriesCollection(1).AxisGroup = xlPrimary ' Force series to primary axis 

After this, try setting the axis title again:

ActiveChart.SetElement (msoElementPrimaryValueAxisTitleAdjacentToAxis) 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rackymuthu