Blue Prism Product

 View Only
last person joined: 9 hours ago 

This community covers the core Blue Prism RPA product.

  • 1.  Get Number of pages from a Word document

    Posted 06-14-2022 11:25

    Hi everyone!

    Hope you are doing okay!

    I have a question:

    How can I get the number of pages into a WORD document?

    Thank you for your time!

    Erjola Mema

  • 2.  RE: Get Number of pages from a Word document
    Best Answer

    Posted 06-14-2022 12:04
    Hi Erjola,

    You can do this in a couple of steps:
    1. Import, or ensure you have, the MS Word VBO from the Program Files
    2. Create a new version of this VBO called "MS Word VBO - Extended" - to align with our best practices
    3. Create a new action called "Count Document Pages" with the following detail:
      1. Inputs: [handle] and [documentName]
      2. Process Flow: Start > Call CheckInstanceHandle Page > Code Stage > End
      3. Code Stage
        1. 'Declare object for code use
          Dim doc as Object = GetDocument(handle,documentName)
          'Returns the number of pages in the document associated with the range (whole document).
          result = doc.Range.Information(4)
      4. Outputs: Result
    This will allow you to count the number of pages, if you need any more actions let me know

    All the best,


    James McLintock Program Lead
    Intelligent Automation, Program Lead
    Blue Prism

  • 3.  RE: Get Number of pages from a Word document

    Posted 06-14-2022 13:29
    Since @James McLintock went through the work of documenting the code to get the page count, we've gone ahead and updated the official MS Word VBO on the Digital Exchange to include this capability.

    You can find the latest MS Word VBO here.

    NOTE: We went ahead and added actions for getting the count of paragraphs, lines, and words in the document too.


    Eric Wilson
    Director, Integrations and Enablement
    Blue Prism Digital Exchange

  • 4.  RE: Get Number of pages from a Word document

    Posted 06-14-2022 13:32

    Great !

    Thank you @Eric Wilson !​​

    Erjola Mema

  • 5.  RE: Get Number of pages from a Word document

    Posted 06-20-2022 15:57
    Thanks @Eric Wilson for sharing latest word VBO with us.


    Nilesh Jadhav
    Senior RPA Specialist

  • 6.  RE: Get Number of pages from a Word document

    Posted 06-14-2022 13:30

    It worked fine!

    Thank you @James McLintock !

    Erjola Mema

Welcome to the Blue Prism RPA Product Community!

Whether you’re looking to manage a complex infrastructure, maintain security and compliance, bring new products to market faster, or gain operational speed and agility in an uncertain economy, Blue Prism delivers — with the flexibility you need to create the business you want. From deployment on-premise, through a cloud service provider or as SaaS, to a skillful and adaptable digital workforce that continually expands to meet your enterprise needs, you can gain enhanced operational insight and control while your people reclaim the time they need to focus on great work.

Product PageKnowledge BaseBlue Prism Training Offering
Product Research ProgramUpdates, Releases & Announcements


Blue Prism is intelligent automation — business-developed, no-code automation that pushes the boundaries of robotic process automation (RPA) to deliver value across any business process in a connected enterprise.

A combination of RPA with expanded cognitive and AI capabilities, Blue Prism is different than other automation technology on the market. With one Blue Prism license, you gain instant access to an already AI equipped digital workforce, along with the tools you need to build and delegate automations. Click here for more information on Blue Prism and Intelligent Automation.
To learn more about how Blue Prism RPA can help your organization and how much it will cost to get started, please Contact our Sales department.
Blue Prism RPA can be downloaded from our customer portal. If you would like to consume or download any material it is necessary to create an account on the Portal. Once you have registered, you can access the download options for Blue Prism here.
Yes! Installed on your own machine and supported by our training materials and product documentation, you can use all the features of the full enterprise product for free with our Blue Prism Trial – giving you the opportunity to learn the basics before moving to a full production implementation. Click here for more information and to download the trial.
Yes! You can access our known issue list for Blue Prism from our Support Portal.
Regardless of your industry, Blue Prism’s Digital Workforce can adhere to strict governance and compliance standards without limiting productivity. Click here for more information on how your industry can benefit from Blue Prism.