Solved

Task Scheduler to open Excel file daily

Posted on 2014-03-24
5
3,100 Views
Last Modified: 2014-04-23
Win7 Pro, Office 2007

I would like to schedule Windows to open a specific spreadsheet daily at 8 AM.  The file path is something like X:\A A\B B\C- C.xlsm.  Also the file is password protected with a password like 123.

Can anyone assist with this?
0
Comment
Question by:drunkennoodle
5 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39950542
This is a basic scheduler operation and can be found at Microsoft's website

http://windows.microsoft.com/en-au/windows/schedule-task#1TC=windows-7
0
 

Author Comment

by:drunkennoodle
ID: 39951332
Thanks Ace but I'm looking for more than just how find the Task Scheduler.
0
 
LVL 10

Accepted Solution

by:
broro183 earned 500 total points
ID: 39963452
hi,

I've done some testing & some reading and it seems that Task Scheduler can't open a password protected file. However, you could use a "helper excel file" that subsequently opens the desired file via code.
This helper workbook would have a macro named auto_open (or Workbook_Open) that would open the real
workbook (by supplying the password) and then get out of the way:
Option Explicit
Sub auto_open()
Workbooks.Open Filename:="c:\my documents\excel\book2.xls", _
password:="yourpasswordhere"
ThisWorkbook.Close savechanges:=False
End Sub

Open in new window


Here are a some of the links that I've read, they are all quite old but seem relevant:
https://groups.google.com/forum/#!topic/excel-macros/z-xN9HcmRm0
http://www.excelbanter.com/showpost.php?s=afbe915163fada0bb5c23fd63324dc0f&p=301786&postcount=2
http://answers.microsoft.com/en-us/office/forum/office_2003-excel/auto-protect-unprotect-excel-file/0239a6dd-59ae-4466-9bfe-f3161ec04162

Rob
0
 
LVL 59

Expert Comment

by:LeeTutor
ID: 40017674
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now