Change format of series on all charts based on cell value

auroralily

New Member
Joined
Sep 13, 2014
Messages
24
Hi

I have received a lot of great help in the last week for this project and I was hoping that I could get some help again. I'm using excel 2007 at home and 2010 at work.

I have produced a workbook with charts of student data (named Test Graphs), the charts get their data from another file (named Test Data):
ead75524-e9cb-4c56-b7e1-edc02258273d.png


There are 35 charts in the "Test Graphs" workbook which is theoretically bigger than any class will be but the number could be higher. If the class size is less than 35 the unused charts will be hidden.

The marker style of the "Grades" series will be dependent on the value in column C (eg if Gender = M, style = triangle). This is a screenshot of the "Data" sheet:
datascn2.png


Tracking Graph (1) will get it's gender information from row 3 (C3) in the "Data" sheet.

What I would like is a macro that does the following when run:
  • Change the marker style on all charts that satisfy the condition: if gender = M
  • Activate the print function (eg act like the user has pressed ctrl p)

Thanks again for all the help I've already received.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,214,878
Messages
6,122,062
Members
449,064
Latest member
scottdog129

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top