+ Reply to Thread
Results 1 to 2 of 2

print every day at fixed time, automatically

  1. #1
    Forum Contributor
    Join Date
    02-28-2006
    Posts
    690

    print every day at fixed time, automatically

    Good morning all,

    Does anyone know how I can print something every day at 08:00, automatically.

    I have been playing around with the ontime command within a macro, but can't get it to work.

    thanks

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    I am using 2 macros
    Use the SetPrintTime to setup your print OnTime command -
    the PrintDaily macro also uses the OnTime command to at a later time.

    You can not use Application.OnTime TimeValue("08:00"), "PrintDaily" command from within the PrintDaily macro else it will run more than once on the same day


    Sub PrintDaily()
    ' your code here to print etc
    activesheet.print
    ' sets application to run a macro to set printdaily run time
    Application.OnTime TimeValue("010:00"), "setPrintDaily"
    End Sub


    Sub SetPrintTime()
    'set printdaily run time
    Application.OnTime TimeValue("08:00"), "PrintDaily"
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1