Open excel using Scheduled Task

tuktuk

Well-known Member
Joined
Nov 13, 2006
Messages
856
Hey there,

I have an excel file that i trigger to open durign the middle of the night using the Task Scheduler.

Code is triggered using the On_Open() cmd. Part of the code is to extract / pull data from Essbase.

The issues is that I can only have one connection to essbase....so if i already have an instance of Excel open adn then the task sched is triggered it opens another instance of excel (rather than using the active / currently open instance), thus resulting is the dataset not pulling properly.

I guess my option would be to run code at night to close all instances of excel if any are active or tell the task sched to open the requested file to the active instance.

any ideas?

tuktuk
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
hmmmm. get this:

if i have an instance of excel 07 open and then open another preexisting file save on the somewhere (LAN, desktop etc) it opens in the same instance.

if i go to the start menu and click on the 07 icon then another book opens. is this how the scheduler task would open it?

i've also tried the XLSX setting to mirror in the other thread. namely under File Types opens with excel,.....i dont believe there is a "Use DDE" box" in 2007 settings.

T
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,750
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top