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 ==> | Excel VBA Macros (52 exercises) |
Topic ==> | Recording macros and buttons (6 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.
Open the file shown in the folder above.
Before you start recording a macro, take a copy of the current sheet so you have a replica to test your macro on later.
Record a macro called FormatTable, with the shortcut CTRL + SHIFT + F, which will format the table and add a formula into column C to calculate the ratio of people who prefer each cheese.
The final table should look like the below:
You could also add borders if you wish.
The steps involved in this macro are:
In Cell C3 add in the header % People.
Highlight Columns A-C and centre the text within each column.
Align the main header Favourite Cheeses Data across Columns A-C.
Change the Font of the main header to Bold and Size 14pt.
Change the Font of the table headers in Row 3 to Bold and Size 12pt.
In Cell C5 type in a formula to calculate the ratio of the people who prefer that cheese.
AutoFill this down to the bottom of the list.
AutoSize the column widths.
Your ratio formula can use the SUM function to find to total number of people surveyed, there is a range name (PeopleNumbers) to help here.
Test your macro works whilst on the copy of the cheese sheet you made earlier.
Save the amended file as Le Grand Fromage - Formatted and 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.