I was placing the worksheet code in the ThisWorkbook module, not the module associated with the worksheet. Relocating the code to the worksheet module solved the issue.