I'm trying to reference a CustomProperty I defined on a worksheet in VBA but I get a Type Mismatch error every time. Can someone explain what's going on?
I'm doing this in the Immediate window while the macro is paused. ws is a worksheet object.
I'm doing this in the Immediate window while the macro is paused. ws is a worksheet object.
Code:
ws.CustomProperties.add "Roster", "no"
?ws.CustomProperties("Roster").Name 'gives Type Mismatch
?ws.CustomProperties("Roster").Value 'gives Type Mismatch