How to update open Workbooks open on other computers?

extremecorvette

New Member
Joined
Jun 2, 2011
Messages
20
How to update open Workbooks open on other computers?
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>
Have a workbook that is set up as the quality tracker for our company. I set up security so everyone is promoted to open it as read only and for the few that have the password they can open it and make changes.
<o:p> </o:p>
I’m having an issue with people leaving there tracker open for days and about every hour I’m making updates or adding parts to it so when people are trying to run production they are not able to find the parts on the tracker. 99% of the time I just tell them to close it out then reopen it since I have already added the part.
<o:p> </o:p>
Is there a way to have all the workbooks that are opened as read-only run a macro after 60min or top of every hour they update?
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
The following is some code that might help you get started as it doesn't necessarily works as you need it to.

The following will run code at a specific time in your case an hour after the workbook opens. It calls the ReloadMe Sub.
Code:
Private Sub Workbook_Open()
    '// Run Code only if in readOnly mode
    If ThisWorkbook.ReadOnly = True Then
        Application.OnTime Now + TimeValue("01:00:00") "ReloadMe"
    End If
End Sub

This code will work to reopen a read-only file if call directly but if called from the above it will display message that it can't run the macro.
Code:
Sub ReloadMe()
    Application.DisplayAlerts = False
    Workbooks.Open Filename:=ThisWorkbook.FullName, ReadOnly:=True
    Application.DisplayAlerts = True
End Sub

This works the first time but not on subsequent reopens.
Code:
Private Sub Workbook_Open()
    If ThisWorkbook.ReadOnly = True Then
        Application.Wait Now + TimeValue("01:00:00")
        Application.DisplayAlerts = False
        Workbooks.Open Filename:=ThisWorkbook.FullName, ReadOnly:=True
        Application.DisplayAlerts = True
    End If
End Sub

I haven't dealt with this type of issue so it might not be possible but I don't know either way. Will look into it some more a little later.
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,626
Members
452,933
Latest member
patv

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top