Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Scheduling a Macro

i have set up a macro using the Application OnTime function. I have used it
on several excel files and two of them work and two of them don't even though
the code is the same. Any ideas why this is happening?

I need the macro to run after it is opened, but not run on every opening, so
I have tried to schedule it to run at a certain time.

Private Sub Worksbooks_Open()

Application.OnTime TimeValue("6:45:00"), "Compliance"

End Sub

(In ThisWorkbook Code)
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Scheduling a Macro

Check the posting on 4/20/2009 titled Time Macros on Weekday only. I think
the information you are looking for is in one of the replies. And there are a
few websites in there also that would be very helpful.
Good luck

"Ashlyn R." wrote:

i have set up a macro using the Application OnTime function. I have used it
on several excel files and two of them work and two of them don't even though
the code is the same. Any ideas why this is happening?

I need the macro to run after it is opened, but not run on every opening, so
I have tried to schedule it to run at a certain time.

Private Sub Worksbooks_Open()

Application.OnTime TimeValue("6:45:00"), "Compliance"

End Sub

(In ThisWorkbook Code)

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Scheduling a Macro

Hi Ashlyn

It must be

Private Sub Workbook_Open()


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Ashlyn R." wrote in message ...
i have set up a macro using the Application OnTime function. I have used it
on several excel files and two of them work and two of them don't even though
the code is the same. Any ideas why this is happening?

I need the macro to run after it is opened, but not run on every opening, so
I have tried to schedule it to run at a certain time.

Private Sub Worksbooks_Open()

Application.OnTime TimeValue("6:45:00"), "Compliance"

End Sub

(In ThisWorkbook Code)

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Scheduling a Macro

I don't need it scheduled to run on a certain day. I have the file opening
(using Scheduled Tasks) on the days that I need it. I would like to know why
the macro works on some files, but not on the others.

"Ayo" wrote:

Check the posting on 4/20/2009 titled Time Macros on Weekday only. I think
the information you are looking for is in one of the replies. And there are a
few websites in there also that would be very helpful.
Good luck

"Ashlyn R." wrote:

i have set up a macro using the Application OnTime function. I have used it
on several excel files and two of them work and two of them don't even though
the code is the same. Any ideas why this is happening?

I need the macro to run after it is opened, but not run on every opening, so
I have tried to schedule it to run at a certain time.

Private Sub Worksbooks_Open()

Application.OnTime TimeValue("6:45:00"), "Compliance"

End Sub

(In ThisWorkbook Code)

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Scheduling a Macro

Have you see my reply ?



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Ashlyn R." wrote in message ...
I don't need it scheduled to run on a certain day. I have the file opening
(using Scheduled Tasks) on the days that I need it. I would like to know why
the macro works on some files, but not on the others.

"Ayo" wrote:

Check the posting on 4/20/2009 titled Time Macros on Weekday only. I think
the information you are looking for is in one of the replies. And there are a
few websites in there also that would be very helpful.
Good luck

"Ashlyn R." wrote:

i have set up a macro using the Application OnTime function. I have used it
on several excel files and two of them work and two of them don't even though
the code is the same. Any ideas why this is happening?

I need the macro to run after it is opened, but not run on every opening, so
I have tried to schedule it to run at a certain time.

Private Sub Worksbooks_Open()

Application.OnTime TimeValue("6:45:00"), "Compliance"

End Sub

(In ThisWorkbook Code)

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
scheduling ebsbookie Excel Worksheet Functions 0 July 7th 09 08:31 PM
Scheduling axwack Excel Programming 0 January 11th 08 07:52 PM
Scheduling Macro run axwack Excel Programming 1 January 10th 08 10:16 PM
Scheduling a Macro to Run Lost and Looking for Help Excel Programming 6 May 16th 06 06:07 PM
Scheduling a Macro Jeff M[_3_] Excel Programming 0 August 18th 03 03:03 PM


All times are GMT +1. The time now is 09:44 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"