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 ==> | Messages and variables (4 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 WODA Application.xlsm file. Your task is to create subroutines which can be attached to the two buttons on the application form.
The text on the buttons should provide a clue as to what they should do.
Create a subroutine which you can attach to the Add Details button. A basic outline for this procedure could be:
Declare variables to hold each value the user will enter.
Use input boxes to ask the user to enter each value and capture the result in the variables you have declared.
Write the value of each variable into the appropriate cell on the worksheet.
Present a message which informs the user that the application is complete.
For reference, the code to capture the value of an input box is:
MyVariable = InputBox("Type something")
Right-click on the Add Details button and choose to assign the procedure you have written.
Click the button to check that the system works:
Type a value into each input box and click OK to see the next one.
At the end of the procedure, all of the cells should be filled in:
You can display a message to tell the user that the application is complete.
Now create a subroutine which you can attach to the Edit Details button.
This will be identical to the first subroutine except that you'll use the value of each cell to set the Default parameter of each input box.
Attach the subroutine to the Edit Details button. Click the button to test that the system works:
Each input box should appear with the current value already displayed.
Save and close the file.
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.