Applications Programming --- Lab 9
Objective:
- Learn to develop a VBA program with repetition statements
- Learn to develop a VBA program using data in multiple worksheets
References:
Your task:
Download the sample input file lab9-input.xlsx.
This file contains a worksheet named "AllCities"
that lists the names of all cities where a company has offices.
Write a VBA program that does the following:
- Count and display how many worksheets there are in this file.
- For each city in the list, check whether there is
a worksheet with the name of that city in this workbook.
If there isn't one, add one.
- Delete any city worksheet if the worksheet's name
is not in the current AllCities list.
- Save the updates.
- Count and list how many worksheets there are in this file again.
There is a weekly Assignment 9
following this lab.