Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
547 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Software ==> | OfficeScripts (21 exercises) |
Topic ==> | Loops (7 exercises) |
Level ==> | Average difficulty |
Subject ==> | Office Scripts training |
This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
Open the RRH Maze.xlsx file. The aim of the exercise is to write a script which follows the direction in each cell until Little Red Riding Hood reaches safety.
Each letter corresponds to the direction in which to offset to reach the next cell.
A basic outline for how to do this could be:
Use a Range variable to get a reference to cell B2 and select this cell.
Begin a loop which continues while the value of the cell in the variable does not include the word Safe.
Read the value of the cell in the range variable.
Use an if statement to set the range variable to refer to the cell that is offset in the appropriate direction.
Select the new cell in the range variable.
To check if a cell contains a word you can use the includes method. The basic syntax is:
myRange.getValue().toString().includes("my string")
Run the script and make sure that Little Red Riding Hood makes it to Grandma's cottage safely.
Save and close the script and workbook.
You can find other training resources for the subject of this exercise here:
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.