The question is the following:
A worksheet named AllCars list all the car brands available in a dealer in the column A (starts from cell A2).
(1) For each car in the list, it checks whether there is a worksheet with the name of that car in the workbook, and if there isn’t one, it adds one; and (2) it deletes any car worksheet if the worksheet’s name is not in the current AllCars list. (Warning: The sub should also work if the AllCars list contains exactly one car brand or no car brands at all).
for example:
Cell A2: Toyota
A3: Ferrari
A4: Audi
A5: Mercedes
A6: Acura
A7: Lexus
And what I have right now is:
but it is nowhere near working. It adds many cells at the end, but without the car names
Many thanks in advance for your help. Any help would be very appreciated!
Bookmarks