2 Replies Latest reply on Sep 8, 2015 1:12 PM by dng

    VBA command - ProcessBook

    infinity

      Hi,

       

      I would like to know if there is a VBA command to open a specific processBook page.

       

      Thanks,

       

      Davide

        • Re: VBA command - ProcessBook
          HenlodeWaal

          Dim MyProcBook as object

          Set MyProcBook = ProcBooks.Open(FileName)

          • Re: VBA command - ProcessBook
            dng

            Hi Davide,

             

            Are you trying to open a specific .pdi file (specified by a file name)? If you are looking for a VBA way, you can use the Displays.Open method. E.g.

             

                Dim d1 As Display
                Set d1 = Application.Displays.Open("C:\Dev Support\VBA in PB\redgreen.pdi", True)
            

            Alternatively, if you would like the page to be opened upon a button click, you can use the native functionality of a ProcessBook button. For example, if you are trying to open a ProcessBook display within a PIW file, check out the method described in KB01266.

            1 of 1 people found this helpful