Novice Challenge 8: It's Not My Fault
Office Programs Required |
Microsoft Word 2007 |
Goldfish Awarded |
5 |
Deadline for Submission |
Wednesday, April 29, 2009 (8:00 AM Pacific Daylight Time) |
Files Required |
NoviceChallenge08.docm and Disclaimer.docx in the OfficePalooza Challenge Pack. |
We’ve all seen them, those disclaimers that appear on just about everything. You know, the ones that say things like “The opinions expressed in this article do not reflect the opinions of…” or “This software is made available for download solely for use by end users according to the License Agreement…” and so on. It’s getting so you have to put something like that on just about anything you make available outside your own team, and sometimes even inside your own team. Because the standard disclaimer has to go on almost everything, wouldn’t it be nice to have a way to just paste it in whenever you need it? Of course it would.
That’s where this challenge comes in. We’ve created a document named disclaimer.docx. This document contains a (not-so) standard disclaimer (which we don’t suggest you use on any of your real documents – this is just a game, remember?). All you need to do to successfully complete this challenge is add code to the file NoviceChallenge08.docm to copy all the text from disclaimer.docx and paste it onto the end of NoviceChallenge08.docm. Oh, and make sure the disclaimer is pasted in as a new paragraph; we want to make sure our disclaimer stands out from the rest of the text.
Important: Do not specify a path for disclaimer.docx. Assume that file is in the current folder.
When you open the Visual Basic editor (which you can do by pressing Alt+F11), there should already be a window open with the subroutine AddDisclaimer showing. Insert your code into this subroutine. (If you don’t see this subroutine, double-click on ThisDocument in the Project pane on the left under VBAProject (NoviceChallenge08).) Do not create any other subroutines – all your code should go in here.
Important: Do not add code to save the document.
Submitting Your Entry
The OfficePalooza sweepstakes is over, but you’re welcome to try the challenges and learn on your own. Good luck!