Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 11-23-2020, 03:46 AM
p45cal's Avatar
p45cal p45cal is offline How to show X values on the X axis Windows 10 How to show X values on the X axis Office 2019
Expert
 
Join Date: Apr 2014
Posts: 962
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

Quote:
Originally Posted by massimodfd View Post
1. how to adapt the macro to a specific data sheet ?
The macro works on a chart, not a sheet. Record a macro selecting the sheet and then the chart. Copy the code here and I'll show you how to tweak it.

Quote:
Originally Posted by massimodfd View Post
2. where is the instructions creating the "button" ?
Developer tab, Controls section, Insert dropdown: choose top left button (Form Controls, (Button, Form Control). Then click on the sheet, an Assign Macro dialogue box pops up: choose the macro from the list, Click OK.
Quote:
Originally Posted by massimodfd View Post
3. where can I change the colour of the vertical line of the graph (currently grey)?
Manually, select one of them (all will be selected), right-click and choose Format Leader lines… you can select the colour in the pane which appears on the right. Automated, you need to use the likes of one of these:
Code:
    ActiveChart.FullSeriesCollection(1).LeaderLines.Format.Line.ForeColor.RGB = vbRed
    ActiveChart.FullSeriesCollection(1).LeaderLines.Format.Line.ForeColor.RGB = RGB(23, 185, 65)
    ActiveChart.FullSeriesCollection(1).LeaderLines.Format.Line.ForeColor.RGB = 11817066
To get the values after the equals sign for a specific colour of your liking, record a macro of you changing the colour of any line, fill of a cell, font colour, preferably using the More Colours… option, then the Custom tab (where you can see the individual Red/Green/Blue values) and you should see amongst the lines of recorded code the likes of:
Code:
.Color = 10605937
.ForeColor.RGB = RGB(46, 218, 46)
Use those values.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set specific axis values in graphs Esaylikepie Excel 0 10-16-2016 04:31 AM
How to show X values on the X axis Format Chart X axis - inconsistent values TimTDP Excel 2 12-01-2015 02:56 AM
How to show X values on the X axis X axis does not show Years from data MARENG Excel 8 01-20-2015 10:45 AM
Secondry Axis overlapping in bar chart dual axis in Powerpoint 2010 sharath_ms PowerPoint 0 07-08-2013 10:06 PM
how do I add data values in Col A into X axis on bar graph? hazz Excel 1 04-27-2010 01:42 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:33 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft