I have some code that worked on my old work machine and confirmed still works on other work machines but doesn't work on a newly provided work computer. Code appears to bomb when I reference the option button but works fine for all the rest of the code. For instance this line:
Sub test()
Sheets("Sheet1").OptionButton1.value = "False"
End Sub
Generates this error message: Run-time error '438': Object doesn't support this property or method
I have verified the following:
- I am working off of the same version of Microsoft Excel as before
- The same references are included as before
- I am using Form controls, not ActiveX controls
- I get the same error even if I alter the code to : ActiveSheet.Shapes("OptionButton1").ControlFormat.Value = xlOff