Sign in to follow this  
Followers 0
bristolweatherman

Adding a password when opening excel

1 post in this topic

When autoIT opens an excel file the password dialog box opens.

I want autoIT to add the password and then press enter.

Here is an extract from my script.

$filename = "Q:\Excel QLX reports\repair_orders.xls"

$oExcel = ObjCreate("Excel.Application")

$oExcel.Workbooks.Open ($filename).Sheets (1).Select ()

$oExcel.Visible = True

I think from looking at the form I need to use winactive?

Perhaps send ("{ENTER}" but I cannot get it to work.

Please can I have a few lines of code to enter the password?

Also if I want to schedule an autoIT script to run every monday morning can someone suggest some software to do this?

Thanks

Mark

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0