Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Scheduling task to run for Excel Addin

I have been trying to figure out how to run our canned reports
utilizing the WIndows Task Scheduler. We currently run most of our
canned reports in Excel with the Essbase Add-In and VBA. DOes anyone
out there have any suggestions on how I can run these reports daily by
scheduling them to run?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default Scheduling task to run for Excel Addin

- Create a macro that runs your reports. Lets' call the macro 'MyReports'.
- In the 'Workbook_Open() section of 'ThisWorkbook' put the following code...

Private Sub Workbook_Open()
Call MyReports
End Sub

- In the Windows Schedule, select this workbook.
- At the scheduled time, the workbook will open and the 'MyReports' macro
will automatically run.

FYI,
I put a time check in the macro to see if it's in the middle of the night.
If so, when the macro's completed, it closes the workbook and Excel.

Here's an example where I have something scheduled for 5:15 am...

Public Const strTimeStart = "05:00:00" '5 am
Public Const strTimeEnd = "05:30:00" '5:30 am

MyReports()
'do stuff...
'check to see if Excel should close
' because it's so early in the morning
If Time() TimeValue(strTimeStart) And _
Time() < TimeValue(strTimeEnd) Then
Application.Quit
Application.ActiveWorkbook.Close
End If
End Sub


--
Hope this helps.
If it does, please click the Yes button.
Thanks in advance for your feedback.
Gary Brown



"DallasEssbase" wrote:

I have been trying to figure out how to run our canned reports
utilizing the WIndows Task Scheduler. We currently run most of our
canned reports in Excel with the Essbase Add-In and VBA. DOes anyone
out there have any suggestions on how I can run these reports daily by
scheduling them to run?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Excel addin versions having LaodBehaviour issue at Addin Dwipayan Das Excel Programming 0 April 17th 09 05:51 AM
task scheduling venu Excel Programming 1 May 22nd 08 11:28 PM
setup project for Excel addin, won't register addin Gerry Excel Programming 0 October 31st 07 12:01 AM
Scheduling task for Excel Curly Excel Worksheet Functions 0 July 20th 06 09:17 PM
Scheduling a Task to run Excel Shani Excel Discussion (Misc queries) 1 November 16th 05 04:22 PM


All times are GMT +1. The time now is 01:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"