I have a private sub which uses the function Search.Enabled however on running the sub I receive an error message that the variable is not defined. However it is not a variable and works on other colleagues machines.
I suspect it is a reference or item that has not been enabled in my version of Excel though I have no idea of knowing which item I should be looking to add.
Private Sub Worksheet_Change(ByVal Target As Range)
Sheets("Control").Range("can_search").Calculate
If Sheets("Control").Range("can_search").Value = 1 Then
**Search**.Enabled = True
Else
Search.Enabled = False
End If
End Sub
Search.Enabled
isn't part of the Excel object model. Perhaps it is defined in a addin? Do your colleagues have any that you are missing? – David Rushton Jul 5 '16 at 13:37Search
placed on the sheet on your colleague's machine? – shahkalpesh Jul 5 '16 at 14:25