MrExcel's Learn Excel #509 - Corralling Students

If you like this content, please consider visiting the video on YouTube and subscribe to the MrExcel Channel to show your support!
This video has been published on Sep 9, 2009.
Christina asks how to make sure that the students in her class stay within a tiny range of the spreadsheet. Episode 509 discusses two methods to solve this problem.

This blog is the video podcast companion to the book, Learn Excel from MrExcel. Download a new two minute video every workday to learn one of the 277 tips from the book!
maxresdefault.jpg


Transcript of the video:
Welcome back to the MrExcel netcast.
I'm Bill Jelen.
That's Wednesday.
I'm happy to say that today, I'm back in Canada.
I'm in Vancouver, taping for more episodes of Leo Laporte's new show.
Now, call for help has been moved to Vancouver and it's been renamed the lab.
I'll let you know on the website, when those episodes will eventually appear.
But I'm glad to be going back and doing Leo show.
I also want to point out a couple of things we had the 500 episode number 500, contest a few weeks ago.
The winners of that are being announced slowly.
We're drawing one at a time, if you go to MrExcel.com/pod500.html You can watch as we choose the winners and they get to choose their prize.
I also want to invite you to take a look at the challenge of the month, where we have the March-April challenge.
Voting is open.
We have about five or six or seven formulas nominated and a good discussion there about the best way to solve the tricky calculation problem.
Okay! But back to today's problem.
We have a question that was sent in by Christina.
Christina says you know, "Hey! I work in a classroom, I want to keep my kids in a certain section of the spreadsheet.
I don't want them to go outside of that." Let's just say you know, A1 through E10.
I want to give them that area to work in and want to make sure that they stay outside of everything else.
Well, there's two ways to solve this and if you have younger kids and they aren't very clever.
This first method is going to work.
What I suggested was hiding everything outside of A1 through E 10.
So, for example going to row 11 holding down the [ shift ] key, pressing the [ end ] button, letting go and then the [ down arrow ], that will select all the rows below, row 10.
And then we can use format, row, hide and then similarly going to cell F1, hold down the [ shift ] key the [ end ] key and then the [ right arrow ] and do format, column, hide.
And now, the students are presented with basically, a nice tiny spreadsheet from A1 through E10 and unless they know how to unhide columns, they won't be able to go outside of that range.
Now, if you're worried about someone being able to go in and unhide the range, then we have to go in and use something called the scroll area.
I'm going to switch over to VBA, which is [ alt + F11 ] and some books will suggest that you double click on Sheet 1 and then go to the scroll area property, down here in the lower left hand corner and Specify A1 E 10, the problem with that is that when someone closes and reopens the workbook.
That value gets reset then the projects explorer we have to double click on this workbook and then from the left drop-down choose workbook, from the right drop-down, choose open.
Any code that we write in this tiny procedure will be run every time the workbooks open and it's basically just one line macro.
Let me paste it in here from the clipboard.
This workbook dot worksheets and then in parenthesis, in quotes, the name of the sheet.
So, sheet 1 Dot scroll area equals and then in quotes the range that you want to protect so, for example A1 through E10.
Now, this kids run every time that someone opens the workbook.
Basically, that will prevent anyone from selecting anything outside of A1 through E 10.
They won't even be able to go over and unhide those rows and columns.
So, there you have it.
Thanks to Christina for sending in this question.
If you have a question for the podcast, please feel free to leave us a voicemail or drop us an email and we'll get to you on a future episode.
Thanks for stopping by, we'll see you next time for another netcast from MrExcel.
 

Forum statistics

Threads
1,215,039
Messages
6,122,799
Members
449,095
Latest member
m_smith_solihull

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