> **What**
When an enum is declared within a worksheet. This can cause an Ambiguous name error if/when the worksheet is copied. I categorize this under Code Quality.
**Why**
When an enum is declared within a worksheet object and that worksheet is copied the enumeration is copied as well. This leads to an identical enum in two locations resulting in an Ambiguous name error.
**Example**
This code should trigger the inspection:
```vb
'Defined in a Worksheet
Public Enum Sheet1Enumerat