98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » Line graph markers
Line graph markers
Resolved · High Priority · Version 2007
Luke has attended:
No courses
Line graph markers
Hi
I am working with a line graph in Excel. On the graph I have plotted 50 lines over a yearly period showing booking patterns for each week.
I s there a way I can edit all of the data point markers on all of the lines at one go to avoid me going through and edit 50 different data points and markers?
Cheers
Luke M
RE: Line graph markers
Hi Luke
Thanks for getting in touch. Unfortunately it's not possible to select multiple lines in Excel charts without coding.
I will provide you with some code which you can customise as you need.
To program this with VBA, when in your workbook press ALT+F11. Go to Insert > Module and paste the following:
Sub FormatLineMarkers()
Dim objSeries As Series
With ActiveChart
For Each objSeries In .SeriesCollection
objSeries.MarkerStyle = 1
objSeries.MarkerSize = 9
Next
End With
End Sub
Then click on your chart, go to View > Macros > FormatLineMarkers.
This code will loop through every line in a chart, change the style to a square and size 9. The code will need to be adapted depending on what you need to modify. The best way to do this is to record a macro performing the change on one line, then pasting that into the code above.
I'm not sure how comfortable you are with modifying VBA code, so if you let me know what you're trying to format on your charts I can offer some more guidance.
Kind regards
Gary Fenn
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
Will be marked as resolved in 5 days
Notice: This is an automated message. Due to inactivity, this forum post will be marked as 'resolved' if there are no further responses in the next 5 days.
Wed 31 Jul 2013: Automatically marked as resolved.
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Get back to active cellIf you have scrolled away from the active celland want to get back t it quicly you can Ctrl and Backspace to get back |