Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Time of Day Update

I can not get the program to run. I have the OnTime just
as I showed you. Once I compile it and save then I close
the VB editor and just have the spreadsheet open. Then I
minimize the spreadsheet. This is how it will be run.
It will not open the spreadsheet "C:\Documents and
Settings\Robert McMahon\My Documents\Macro Program for
Reports.xls" I have adjusted my program even to remove
the TimeValue and try to input ".5" as the time for excel
and it still will not work. If I can figure this out I
am going to alter this program to run Every hour. And
another one that will run every 15 minutes. But I can't
seem to get this one to work first.......Here is where I
am....
Sub a()
Application.OnTime TimeValue("12:00:00"), "Test"
End Sub

Sub Test()
Workbooks.Open "C:\Documents and Settings\Robert
McMahon\My Documents\Macro Program for Reports.xls"
End Sub

Thanks for any help.
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
Update a cell with a time. Colin Hayes Excel Discussion (Misc queries) 3 January 27th 10 12:24 AM
Fixing time of last update Colin Hayes Excel Worksheet Functions 2 January 26th 10 07:34 PM
Update two workbooks at the same time, but not all the time. jfd111 Excel Discussion (Misc queries) 0 December 11th 09 02:58 PM
Time update gusdafa Excel Worksheet Functions 9 February 26th 08 07:02 AM
update time jschlis Excel Discussion (Misc queries) 2 December 27th 06 02:35 PM


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

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

About Us

"It's about Microsoft Excel"