A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

outlook schedule task (macro) to run weekly.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 1st 08, 10:30 AM posted to microsoft.public.outlook.program_vba
Stew J
external usenet poster
 
Posts: 2
Default outlook schedule task (macro) to run weekly.

This is a question for the programming group in outlook. Below is a macro
that will run from outlook macro (not excel). I don't know how to have
outlook schedule the task (macro) to run weekly.


Sub openexcel()
'Dim wb As excel.workbook

FName = "C:\temp\book1.xls"
Set xlApp = Application.CreateObject("Excel.Application")
Set xlbook = xlApp.Workbooks.Open(FName)
xlbook.PrintOut

End Sub

"Stew J" wrote:

I would like to make excel print a sheet on a weekly basis. the sheet is
part of an accounting file and the results are updated daily. I need the
information to be either printed or saved to my desktop for manual printing
later. This needs to be completed every Monday.


Ads
  #2  
Old June 2nd 08, 06:23 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default outlook schedule task (macro) to run weekly.



This sample demonstrates how to use the task reminder for that. It works as
long as Outlook is running:

http://www.vboffice.net/sample.html?...item&lang=e n

--
Best regards
Michael Bauer - MVP Outlook

: VBOffice Reporter for Data Analysis & Reporting
: Outlook Categories? Category Manager Is Your Tool:
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Sun, 1 Jun 2008 02:30:00 -0700 schrieb Stew J:

This is a question for the programming group in outlook. Below is a macro
that will run from outlook macro (not excel). I don't know how to have
outlook schedule the task (macro) to run weekly.


Sub openexcel()
'Dim wb As excel.workbook

FName = "C:\temp\book1.xls"
Set xlApp = Application.CreateObject("Excel.Application")
Set xlbook = xlApp.Workbooks.Open(FName)
xlbook.PrintOut

End Sub

"Stew J" wrote:

[4 zitierte Zeilen ausgeblendet]

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
schedule task failed using VB in outlook2003 Martin Outlook and VBA 1 August 31st 06 05:05 PM
How do I schedule a re-occurring bi-weekly meetings? BJ Outlook - General Queries 1 June 27th 06 02:15 AM
add schedule tab to a task form Luc Outlook - Using Forms 1 January 31st 06 11:48 PM
How can I schedule a bi-weekly reoccurring meeting? Mlady Outlook - Calandaring 2 January 31st 06 02:42 AM
User cannot schedule new task Cheesel Outlook - General Queries 0 January 20th 06 05:56 PM


All times are GMT +1. The time now is 04:17 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2024 Outlook Banter.
The comments are property of their posters.