weiser386
New Member
- Joined
- Sep 2, 2015
- Messages
- 10
I have created an excel spreadsheet that updates with production data every 3 seconds and part of the macro changes the format of the file to be full screen because it is displayed on a giant TV monitor in our production office...my issue is that once this file is opened on a computer if you have another excel file open it makes them full screen and attempts to update every 3 seconds. How do i make this macro only run on my desired workbook?
here is my code:
This code is located in "thisworkbook"
Private Sub Workbook_Open()
Call MyMacro
End Sub
This code is located in "module 1"
Private dTime As Date
Sub MyMacro()
dTime = Now + TimeValue("00:0:03")
Application.OnTime dTime, "MyMacro"
Calculate
Application.DisplayFullScreen = True
End Sub
here is my code:
This code is located in "thisworkbook"
Private Sub Workbook_Open()
Call MyMacro
End Sub
This code is located in "module 1"
Private dTime As Date
Sub MyMacro()
dTime = Now + TimeValue("00:0:03")
Application.OnTime dTime, "MyMacro"
Calculate
Application.DisplayFullScreen = True
End Sub