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
546 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 ==> | AI (Artificial Intelligence) (21 exercises) |
Topic ==> | Coding - VBA (3 exercises) |
Level ==> | Relatively easy |
Subject ==> | Artificial Intelligence 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 above Word document contains the following Outlook VBA macro:
Sub DeleteAllSubFolders()
'lets user delete multipl folders in one go
Dim oCurrFolder As Folder
Dim oSubFolders As Folders
Dim i As Long
On Error Resume Next
Set oCurrFolder = Outlook.Application.ActiveExplorer.CurrentFolder
Set oSubFolders = oCurrFolder.Folders
For i = oSubFolders.Count To 1 Step -1
'Debug.Print oSubFolders.Item(i).Name
oSubFolders.Item(i).Delete
Next
End Sub
The aim of this macro is to delete all subfolders of the current one. You are, however, a bit worried about whether you're doing things the right way, so write a prompt which:
Asks your favourite AI tool to debug your macro; and
Asks it for any improvements it could make.
You should find that the macro doesn't contain any bugs, but that the error-trapping is a bit dodgy and the variable naming could be improved.
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.