[转]Blue Prism Opening a password protected Excel workbook?

本文转自:https://www.rpaforum.net/threads/opening-a-password-protected-excel-workbook.470/

问:

As the title says, how would we open a password protected Excel workbook using Blue Prism?

答:

Hi Nick

The best approach (which I have used for my developments) is to duplicate the existing Open Workbook action from the MS Excel VBO and change the ‘Open Workbook‘ code stage to include the extra Password input.

Then open up the ‘Open Workbook‘ Code stage and amend the Code (within the Code tab) to the following:

Code:

Dim wb as Object = GetInstance(handle).Workbooks.Open(Filename:=filename, Password:=password)
name = wb.Name
wb.Activate()

You‘ll notice that there is a change of code within the Workbooks.Open brackets compared to the original Open Workbook Code stage. This performs the magic of opening an Excel spreadsheet and entering the password at the same time.

Try it and let me know how you get on.

答:

Was intrigued to see how this can be done without the use of code so had a go myself. Works as follows:

1) Create a new VBO for Excel and set up App Modeller to work with Excel. 
2) Create a Launch page that receives two inputs - Password and Workbook.
3) In the Launch Navigate stage, used the Workbook as the Command Line Parameter and use a Wait stage to wait for the Password pop-up to appear.
4) Use Global Send Key Events to the Application to send the password and then send an Enter "{ENTER}" to the application then wait for the pop-up to disappear. 
5) In the original Excel VBO, use the Attach to Workbook page to attach the VBO to Excel and output the handle.

Hope this helps a few people 
Rob

原文地址:https://www.cnblogs.com/freeliver54/p/10847616.html

时间: 2024-08-29 06:43:58

[转]Blue Prism Opening a password protected Excel workbook?的相关文章

[转]MS Excel VBO option missing in Blue Prism

本文转自:https://stackoverflow.com/questions/48706743/ms-excel-vbo-option-missing-in-blue-prism 问: I am trying to learn Blue Prism in order to complete a proof of concept. I added an action for the purpose of reading an MS Excel. As I understand, first I

[转]Blue Prism Interview Questions and Answers

本文转自:https://www.rpatraining.co.in/blue-prism-interview-questions/ What is a Visual Business Object? The role of a VBO is to act as an adapter to the user interface of a specific application. To accomplish this,each VBO has three main parts: A connec

Client tried to access password protected page without proper authorization (status code 401) 无法发布SceneService的解决方法

前不久,一客户反映原来已经部署好的WebGIS系统忽然无法正常运行了,具体配置如下: Portal for ArcGIS 10.5 ArcGIS Server 10.5 Web Adpator 10.5 Data Store 10.5 表现出现的症状就是托管的要素服务可以正常发布,但是三维服务SceneService发布不成功.查看ArcGIS Server的日志,提示如下错误信息: Client tried to acces password protected page without pr

[转]Blue Prism Login Agent 使用指导手册

本文转自:https://cloud.tencent.com/developer/news/83035 咳!咳!咳! 第一篇RPA技术文,还是贼拉鸡冻.各位大侠要多多支持啊 1.Login Agent简介 什么是Login Agent呢? Login Agent是BluePrism公司提供的一个独立的插件,用于支持自动化程序与Windows桌面应用程序进行交互的,可以理解为Windows用户登录代理. 为什么要使用Login Agent呢? Blue Prism Server是用来提供服务与Bl

[Blue Prism自学]Attach, Detach, Read and Actions

Detch: 1. Detach is used to disconnect a Business Object from an application 2. The Detach button has "disconnected" the Business Object from Order System and as a result, the Write stage nolonger works. Even though Order System is still there,

[转]Have a query in Blue prism coding stage and collection stage.

本文转自:https://www.rpaforum.net/threads/have-a-query-in-blueprism-coding-stage-and-collection-stage.488/ 问: Hi,i have some values got through for loop using code stage, like 1,2,3,4,5.ex: for (i=1; i<=5;i++){Console.WriteLine("{0}", i);}How wou

[Excel] WorkBook.SaveAs

ExcelApplication.WorkBook.SaveAs(Filename,FileFormat, Password, WriteResPassword, ReadOnlyRecommended, CreateBackup, AccessMode, ConflictResolution, AddToMru, TextCodePage, TextVisualLayout ,Local) 1, Filename: Variant 类型,可选.该字符串表示要保存的文件名.可包含完整路径.如果不

EXCEL workbook.saveas 函数详解

本问所有资料来自于 Excel2003 VBA帮助文件,张荣整理,适用于DELPHI,VB的高级语言操作Excel用 ExcelApplication.WorkBook.SaveAs(filename,FileFormat, Password, WriteResPassword, ReadOnlyRecommended, CreateBackup, AccessMode, ConflictResolution, AddToMru, TextCodePage, TextVisualLayout ,

Csharp: Create Excel Workbook or word from a Template File using aspose.Word 14.5 and aspose.Cell 8.1

winform: /// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnGenWord_Click(object sender, EventArgs e) { Dictionary<string, string> d