Web12 sep. 2024 · VB. Sub TestSetElements () Dim chartShape As Shape Dim reportName As String reportName = "Simple 3D chart" Set chartShape = ActiveProject.Reports (reportName).Shapes (1) With chartShape.Chart .SetElement msoElementChartTitleAboveChart ' Select the major gridlines on the value axis, and … Web30 jan. 2009 · Set xlApp = CreateObject ("Excel.Application") ' Open the spreadsheet to which you exported the data. Set xlWrkbk = xlApp.Workbooks.Open (strFileName) ' …
[Solved] Charts: Problem with Macro - Method 'Axes'
Web21 jun. 2012 · Any ideas why this is happening. I am banging my head against the wall. It used to work fine a year ago but not today. How else can I rewrite the following code? If you need more info from me please let me know. Thank you. DoEvents ActiveChart.Axes(xlCategory, xlPrimary).CategoryType = xlCategoryScale Web11 okt. 2010 · Try using the add-in on a chart sheet instead of on an embedded chart object and see if that works for you (in Excel 2010, right-click the chart object, select move chart, and move to a new sheet). Dim oCht As ChartObject Dim oChart As Chart Set oCht = ActiveSheet.ChartObjects ("Chart 1") Set oChart = oCht.Chart If oChart.PlotBy = xlRows … bakhuus de boemerang
Run-time error 1004: Method
Web23 dec. 2003 · chose debugging, then you go to that chart and click on the axes that should be edited, go back to debugging and start again the paused makro from where it stopped. When the makro then works then you need add a line to your code that will select the axis or whatever. Have a try arno Ad Advertisements J Jon Peltier Dec 23, 2003 #3 Hi Rui - Web9 apr. 2009 · Could someone help me figure out this error message: " Method 'Axes' of object '_Chart' failed " I am getting the error on the line: " With .Axes(xlValue... WebHere is the order that worked: Delete previous chart series (optional) Set chart type. Add primary y-axis series. Add secondary y-axis series. Format secondary y-axis. Format x … arcadia waters mandurah for sale