ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Auto_open & Application.ontime in shared files (https://www.excelbanter.com/excel-programming/313796-auto_open-application-ontime-shared-files.html)

Jan Grinwis

Auto_open & Application.ontime in shared files
 
Hi,

Couple of Questions?

I have a shared file whitch is saved as an HTML webpage three times a
day. Sevaral users do use this file, so I had problems with the
application.ontime command. I made this user specific.

I solved this as follows:

Sub auto_open()
If fOSUserName() = "grinwisj" Then
Application.OnTime TimeValue("12:30:00"), "HTMLsave"
Application.OnTime TimeValue("08:30:00"), "HTMLsave"
Application.OnTime TimeValue("22:30:00"), "HTMLsave"
End If
End Sub

HTMLsave manualy started is working fine.


BUT the sceduled task is not working.

Questions:
- How can I see if the HLMLsave is sceduled??
- Is it possible that auto_open() is not done if the other user (not
the first one) is opening the sheet

Jan Grinwis


All times are GMT +1. The time now is 12:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com