deusaquilus
Programmer
When trying to call at CommandBar object state change, i get a "Method 'State' of object '_CommandBarButton' failed" exception.
The code is fairly simple, it goes as follows
Dim hideDeleted As CommandBarButton
Set hideDeleted = ActiveExplorer.CommandBars("Current View").Controls.Item(2)
hideDeleted.State = msoButtonDown <-excepts here
What am I doing wrong?
The code is fairly simple, it goes as follows
Dim hideDeleted As CommandBarButton
Set hideDeleted = ActiveExplorer.CommandBars("Current View").Controls.Item(2)
hideDeleted.State = msoButtonDown <-excepts here
What am I doing wrong?