Can someone help with the code to edit a graph's Axis with VBA?
Below is the code that I'm using to create a graph from an an array of data.
The problem is that the x and y values are too small to make out.
I would like to insert some lines into the existing code to make the graph come out more legible.
Ideally I would like the fonts to be set to pt.15.
And in the Axis Options,set the major and minor unit to 5, and set the "Minimum" to 50.
I could not use the recorder to figure this out.
Thank you in advance.
'create a line chart in excel with this macro
Dim charttitle As TextColumn2
ProductName = Worksheets("Occupancy").Range("B2")
ActiveChart.ChartType = xlLine
ActiveChart.Parent.Width = 900
ActiveChart.HasTitle = True
ActiveChart.charttitle.Text = ProductName
With Selection.Characters(Start:=1, Length:=26).Font
.Name = "Arial"
.FontStyle = "Regular"
.Size = 20
.Shadow = False
.Underline = xlUnderlineStyleSingle
.ColorIndex = 1
Solutions to the Problem Can someone help with the code to edit a graph's Axis with VBA?
here is some code to set the X and Y axis font size:
.BaselineOffset = 0
.Size = 15
.BaselineOffset = 0
.Size = 15
And here is some code to set the minimum, major and minor on the Y axis:
ActiveChart.Axes(xlValue).MinimumScale = 50
ActiveChart.Axes(xlValue).MajorUnit = 5
ActiveChart.Axes(xlValue).MinorUnit = 5
This particular error can easily be resolved with a few simple steps. However, if you are not confident in your ability to use the methods below or they do not fully remove the issue on your computer, you may want to seek the assistance of a qualified repair technician who is well versed in fixing Can someone help with the code to edit a graph's Axis with VBA?.
- Back-up the Registry of your operating system.
- Find the Registry Key: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade]
- Note: this Registry Key should already exist, if it does not exist, create it.
- Create a brand new DWORD Value that is named AllowOsUpdate
- Set the Value to 0x00000001.
- Close and reopen your Control Panel.
- Restart the Microsoft Windows.
Recommended Method to Repair the Problem: Can someone help with the code to edit a graph's Axis with VBA?:
How to Fix Can someone help with the code to edit a graph's Axis with VBA? with SmartPCFixer?
1. Click the button to download Error Fixer . Install it on your computer. Open it, and it will scan your system. The errors will be shown in the scan result.
2. After the scan is finished, you can see the errors and problems which need to be repaired.
3. When the Fixing part is finished, your computer has been speeded up and the errors have been removed
Related: How to Download Toshiba Satellite A205-S5833 Supervisor Password Utility v.18.104.22.168C r2 driver,How to Download Toshiba Satellite C675-S7104 Laptop Checkup v.22.214.171.124 driver,How Can I Update & Download Toshiba Satellite L655-S5117 Face Recognition v.3.1.3 driver,Method to Update & Download Toshiba Satellite L845D-SP4328KL Atheros LAN Driver v.126.96.36.199,How to Update & Download Toshiba Satellite R930 Network Device ID Registry Setting Tool v.188.8.131.52 driver,Best Way to Download NVidia GeForce 6100 VGA Driver v.304.51 Certified,How Can You Update & Download NVidia GeForce 9300/nForce 730i VGA Driver v.310.19 Certified,Method to Download NVidia GeForce GT 330M Driver v.340.65,How Can I Update & Download NVidia GeForce GTX 590 Driver v.280.26 WHQL,Method to Download NVidia Tesla C2050 Driver v.319.17,Way to Download RealTek RTL8100C(L) Driver v.5.01,Way to Download RealTek RTL8100E Drivers v.694,Way to Update & Download RealTek RTL8101L Auto Installation Program v.6.110 driver,Method to Update & Download RealTek RTL8111G PXE and RPL ROM code v.2.58 driver,How to Update & Download RealTek RTL8411B(N) Driver v.10.003,Best Way to Update & Download ASUS A53SV nVidia Graphics Driver v.184.108.40.20686,Method to Herunterladen ASUS K75VJ Intel Rapid Storage Technology Treiber v.220.127.116.110,How Can You Update & Download ASUS CG8580 Intel Chipset Driver v.18.104.22.1689,Method to Update & Download ASUS K41VD Intel INF Update Driver v.22.214.171.1245,Way to Update & Download ASUS Pro70T NB Probe v.3.0.0026 driver
Read More: Fast Solution to Error: Can you calculate on correlated combo boxes in Microsoft Access 2007 - or doctor them so that you can?,Troubleshooting:Can not send out Emails since I Upgraded to Explorer 8.____Als, when I start up I'm also getting evteng.exec and Too Big for Memory.,How to Fix - Can';t update Trend Micro after Windows update changed administrative controls?,How to Fix Error - Can not install Internet Explorer 9 or 10 again?,Solution to Error: can't click browse to upload pictures on internet explorer,Can I safely remove earlier versions on my pc,Can I rotate a graph so it shows on my page sideways?,Can I safely ignore Office file validation alert message?,Can I send a JPEG file in a PDF form ?,can I review when my computer has been accessed from outside my home?