C
Calin
Hello
I have the following problem related to PowerPoint 2003 (perhaps it happens
also in previous versions but I didn't tested yet).
I tried to obtain the PowerPoint application object using the Application
property of a command bar button like this :
Dim button As CommandBarButton
Set button = toolbar.Controls.Item(1) // where toolbar is a valid command
bar
Dim ppt As Application
Set ppt = button.Application
I get an error Run Time Error 80004005 , Method 'Application' of object
'_CommandBarButton' failed.
First I tried this using a COM Addin written in C++, I noticed the problem,
then I tried in VBA and it is the same behaviour.
Any help will be very appreciate. Thanks.
I have the following problem related to PowerPoint 2003 (perhaps it happens
also in previous versions but I didn't tested yet).
I tried to obtain the PowerPoint application object using the Application
property of a command bar button like this :
Dim button As CommandBarButton
Set button = toolbar.Controls.Item(1) // where toolbar is a valid command
bar
Dim ppt As Application
Set ppt = button.Application
I get an error Run Time Error 80004005 , Method 'Application' of object
'_CommandBarButton' failed.
First I tried this using a COM Addin written in C++, I noticed the problem,
then I tried in VBA and it is the same behaviour.
Any help will be very appreciate. Thanks.