Hello mlgill,
The attached workbook has the following macro attached to a button that runs it. I tried to cover as many possible scenarios that might arise. The code is rather long but is heavily commented.
The macro will allow and track multiple cities for one social security number. If there are more than 4 pets per SSN, the user is alerted, the cells are highlighted in yellow, and the macro stops so the data can be corrected.
An entry will not be recorded if it is the first entry for a SSN and there is no city. After a city has been entered, if the city is absent then the previous city for that SSN is used.
Bookmarks