How to Remove Objects on DIAdem Report Using VBS

Updated Apr 26, 2023

Environment

Software

  • DIAdem

In order to remove objects from a DIAdem report programmatically please refer to the following small example.

call Report.Sheets("1").Objects.Remove("objectName")
call Report.Refresh()

This code will remove the object with the specified name from the first sheet of the report, and then refresh the report to reflect the changes.