I have a workbook with code referencing activex objects that isn't supposed to be ran on if the user is on Mac, however after the user gets out of the initial read only mode upon receiving the document, ActiveX objects are deleted. Trying to run certain macros will then result in compile errors not run time errors. Is there a way to suppress these errors ?
Code:
With Application
If .OperatingSystem Like "*Mac*" Then
Navigation.Show
Else
.Run "'" & ThisWorkbook.Name & "'!Update_List"
HB[COLOR=#ff0000].Sheet_Selection.Text[/COLOR] = "Select Sheet"
'HB is a worksheet, Sheet_selection is an activex combobox
End If
end with