The project i am currently working on is going to be used by multiple people as the same time. before adding a new entrie i have the workbook save to update the records already there and then save again after a modification.
here is the code i currently use
[vba]
Sub SaveUpdate()
Dim Wkb As Workbook
On Error Resume Next
With Application
.ScreenUpdating = False
For Each Wkb In Workbooks
With Wkb
If Not Wkb.ReadOnly Then
On Error Resume Next
.Save
If Err.Number > 0 Then
End If
If Err.Number > 0 Then
SaveUpdate
End If
End If
End With
Next Wkb
.ScreenUpdating = True
End With
End Sub
[/vba]
The problem iv been having is that not all the user entries are being added. It seems they are going into ready only mode or somthing and when the save/update is done the new entries from other users are not being shown...
Does anyone have an idea for a sub i can call before and after modifying data so i make sure the copy on the server is always up to date? Its possible 2 entries may be added at the same time so can a check be done to see if the file is writable and if not wait a few seconds uintil it is?