Hi Matt,
thank you for your quick response. I think you're right that the method does not exist, but I'm not sure weather its only incorrect casing in the method name because I changed my Procedure as follows and I got the same Error 438 as before:
Sub refresh()
#If False Then
Dim TaskPane
#End If
Reporting.TaskPane.Refresh
End Sub
Thank you for your help
------------------------------
Nico Krause
------------------------------
Original Message:
Sent: Wed September 29, 2021 09:44 AM
From: Matt Hopkins
Subject: Automate Task pane via API in PAX
Hi Nico,
A 438 error indicates that a property or method you are trying to use does not exist. This is more than likely happening because the casing is incorrect in your call.
https://ibm.github.io/paxapi/#refresh-task-pane
Based on the above link, the call would need to be changed to the following.
Sub hideTaskPane() Reporting.TaskPane.Refresh End Sub
Thanks
------------------------------
Matt Hopkins
Senior Software Engineer
QueBIT Consulting
------------------------------