charts formatting
Microsoft Office TrainingThe UK's Number 1 for Microsoft Office Training Sitemap add this page to your favourites/bookmarksBookmark page
 
view a printable version of this pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Charts Formatting

Charts Formatting

resolvedResolved · Low Priority · Version 2003

replyReplyTue 9 Feb 2010, 15:58Delegate Peter said...

Charts Formatting

when trying to change colors of seriescollections is it possible to dynamically determine the number of sereis collections to avoid trying to change a collection that does not exist?

For upcoming training course dates see: Pricing & availability

replyReplyFri 12 Feb 2010, 16:33Trainer Stephen said...

RE: Charts Formatting

Hi Peter

Thanks for your question

As discussed I will generate the code required to do this and then post it to this thread. I will do this within the next few days

Regards

Stephen

replyReplyWed 3 Mar 2010, 16:09Trainer Stephen said...

RE: Charts Formatting

Hi Peter

Sorry for the delay in responding

The trick is to use the count method of the seriescollection object. The following code demos this by assigning it to a variable and presenting it in a message box.

Sub ChartsSeries()
On Error Resume Next

Dim aChart As Chart
Dim SeriesCount As Integer

Set aChart = Charts.Add


With aChart

.SetSourceData Sheets(1).Range("A1:D4"), xlColumns

SeriesCount = .SeriesCollection.Count
MsgBox SeriesCount



End With

End Sub


Hope this is useful,please follow up if you have any further questions

Regards

Stephen

 

 

Please browse our web site to find out more about
excel consultant and other Microsoft training courses.

Excel tip:

Entering text in Multiple Worksheets

If you have a number of worksheets in a workbook that require the same information (data or tables) on each worksheet, this can be done as follows:

Hold down the Ctrl key and click one or more of the additional worksheet tabs (i.e. Sheet2, Sheet3, etc).

In your mainsheet (Sheet1) enter the required data or design a table.

When done 'Click' on the other sheet tabs and you will see that the information entered in Sheet1 is on all the other selected worksheets.

NB Do not forget to deselect the worksheets - otherwise you may add data to the main worksheet and all the selected worksheets will also have that data!

View all Excel hints and tips

forum postHow do you select the correct data for a chart?

» Forum post: Charts


Rate this page:
2.2/5 (213 votes cast)
Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses
Microsoft Certified Partner
Security Seal verified by visa, mastercard securecard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Management training

Professional Skills courses
Project Management Course London
Project Management Courses London
Project Management Training London
Project Management Training
Project Seminar
Project Seminars
Time Management Course London
Time Management London
Time Management Courses London
Time Management Training London
Introduction to Finance course
Assertiveness Skills course
Effective Communications Skills training
Presentation Skills London

Training Formats

Public scheduled courses
On-site training
Closed company courses

Consultancy
Application Development

Blogs

Excel Training
MS Project Training
Microsoft Training Blog

Version differences

Office 2010 vs 2007
MS Project version differences

Training Information

London Computer Training
Computer Training London
Docklands Training Courses
Docklands Training London

Training venues London
Client list
FAQ
Pricing and availability
Course details / Syllabus

Training Articles
Training Information

Microsoft training

Microsoft Office training
& IT Applications

Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training
MS Project courses
MS Project training
Outlook courses
PowerPoint courses
PowerPoint training
VBA courses
Word courses
Microsoft.training
(more...)

Excel Training

Excel courses
Excel Training Courses Medway
Autonumber in Excel
Microsoft Excel training
Basic Excel Courses
Basic Excel Course
Basic Excel Training

Interested in MS Access training?

Access courses
Microsoft Access training
Microsoft access courses
Microsoft training access course
Microsoft+access+training
Access courses in london

Training provider

Training providers
IT training companies
IT training providers
Management Training providers
Management Training provider

Event history, feedback results
Events in 2012 · 2011 · 2010 · More

See also

Crystal Reports training