Toggle to selects PrintArea; macro to export print areas to pdf file

NorbertBU

New Member
Joined
May 16, 2011
Messages
1
Hello all,

firstly, I would like to thank those who might choose to spear some time to help me.
Secondly, I must warn you that I am a total noob at excel.

I suggest you download the attached file in oder to better understand my poor explanation.
http://www.4shared.com/file/Lo1iObwr/Exam_Framework_v4_Macros.html


I am trying to create an excel spreadsheet (excel 2010) to help me grade exams and collect data (the goal is for me to calculate averages and understand which topics students liked/disliked).
My basic sheet includes 9 exam questions; each question is followed by various boxes for me to to fill in with different parameters (Structure, Form, Punctuation...etc etc).
Each student, however, is required to answer only 4 out of the 9 questions. Therefore when filling in the spreadsheet I will only fill out certain cells and not others.

Ideally, I would like to add two functions to my existing spreadsheet:

1) A button/toggle next to each question (ideally in row C). If the button is pressed/toggle is activated all the rows (A and B) associated with that specific question are included in the print area.
2) A macro which creates a pdf file comprising the 4 selected print areas (i.e. the four questions the student actually answered) plus cells $A1:$B5 (i.e. the heading containing the name of the student and the final grade); moreover, the file name of the pdf must be the same as the name of the sheet from which the data was gathered (as you probably guessed, each sheet will bear the name of a student).

I realise my explanation is not quite clear. However, if you open the attached file...and think about your past Uni exams...it should make sense.
Alternatively, I can try providing further explanations.


Many thanks
 
Last edited:

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,224,519
Messages
6,179,263
Members
452,902
Latest member
Knuddeluff

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