Christopher Dubea

Creating a Task Pane in VBA

Discussion created by Christopher Dubea on Aug 10, 2020
Latest reply on Aug 10, 2020 by Christopher Dubea



I'm playing around with creating a Task Pane dohicky in VBA. Please don't suggest other tools, for a myriad of reasons that I'm not at liberty to discuss, that's a non-starter.


I found this in the API examples:


Unfortunately, it doesn't work.


In the class we have: 

swTaskPane.SetButtonState(buttonIdx) = True

Which, firstly is the wrong syntax.

should be:
swTaskPane.SetButtonState(buttonIdx, Enable) = True

Unfortunately, once I do that I get an error saying:

"Expected Function or variable."

Any thoughts on what the issue could be?

Is this a function of the fact that the Microsoft Calendar control has been deprecated long ago?