ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to set Axes Min/Max values in C# (https://www.excelbanter.com/excel-programming/322562-how-set-axes-min-max-values-c.html)

DVerBooks

How to set Axes Min/Max values in C#
 
Is there a way to set the Axis values in C#? I see it referenced using VBA,
but I'm not able to access using C#. When I compile the statements below, I
get an error 'object does not contain a definition for MinimumScale'.


Thanks!

ActiveChart.Axes(xlValue,xlPrimary).MinimumScale = 90;
ActiveChart.Axes(xlValue,xlPrimary).MaximumScale = 105;



All times are GMT +1. The time now is 06:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com