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
544 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 ==> | Advanced VBA (28 exercises) |
Topic ==> | Working with text files (2 exercises) |
Level ==> | Average difficulty |
Subject ==> | VBA 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.
The folder above contains two files: an empty Excel worksheet, and the specification for how to fill it. This is what the file GridSpec.txt looks like:
This shows, for example, that row 1 column 8 (ie cell H1) should be coloured in.
Write a macro which opens this text file as a read-only text stream, then reads through it line by line, using the coordinates specified for each line to colour in a single cell in the Excel worksheet. For example, the lines shown would colour in:
Row 1 column 8
Row 2, column 3
Row 2, column 4
When you've finished, run your macro: you should be looking at an easily identifiable household object (so to speak), if badly drawn.
If you have time, try writing the macro to recreate the text file!
Save this file as Make a piccie, then close it down.
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.