This is my first post on the forum and I'd like to say thanks for all previous help I've received from previous posts about various things.
On to what I need help with.
I have a macro set up in a sheet to run when the workbook opens. Here is the code:
Private Sub Workbook_Open()
Application.OnTime Now + TimeValue("00:05:00"), "closebookdelay"
End Sub
I have placed this under "ThisWorkbook"
This works fine. The macro it is linked to is:
Sub closebookdelay()
Workbooks("Untitled1.xls").Close True
End Sub
This also works fine.
Here is my problem. I typically do not hit the 5 minute limit because I usually close the workbook before hand. The limit is for others that might be viewing the sheet. I usually have other workbooks open when I am viewing this one. If I close the workbook manually instead of waiting for the timer it seems that the macro is opening the workbook again and closing it. Any idea why this would be happening?
Thanks for your help in advance
On to what I need help with.
I have a macro set up in a sheet to run when the workbook opens. Here is the code:
Private Sub Workbook_Open()
Application.OnTime Now + TimeValue("00:05:00"), "closebookdelay"
End Sub
I have placed this under "ThisWorkbook"
This works fine. The macro it is linked to is:
Sub closebookdelay()
Workbooks("Untitled1.xls").Close True
End Sub
This also works fine.
Here is my problem. I typically do not hit the 5 minute limit because I usually close the workbook before hand. The limit is for others that might be viewing the sheet. I usually have other workbooks open when I am viewing this one. If I close the workbook manually instead of waiting for the timer it seems that the macro is opening the workbook again and closing it. Any idea why this would be happening?
Thanks for your help in advance