What i need is if a spreadsheet is being used it will say try again then when they click it will transfer if not being used.
Currently get it to say Please try again. Probabaly need to remove the read only part as i dont want the user opening the end sheet. not sure how to
managed to get a message saying workbook is in use please try again,
If ActiveWorkbook.ReadOnly = True Then
MsgBox "The Workbook is being accessed by another user. Please try again. ", vbOKOnly, "Read-Only"
'Exit the workbook.
ActiveWorkbook.Close False
Exit Sub
Else
then at the end
End If
MsgBox "The data has been submitted.", vbInformation, "Saved Data"
Application.ScreenUpdating = True
Currently get it to say Please try again. Probabaly need to remove the read only part as i dont want the user opening the end sheet. not sure how to
managed to get a message saying workbook is in use please try again,
If ActiveWorkbook.ReadOnly = True Then
MsgBox "The Workbook is being accessed by another user. Please try again. ", vbOKOnly, "Read-Only"
'Exit the workbook.
ActiveWorkbook.Close False
Exit Sub
Else
then at the end
End If
MsgBox "The data has been submitted.", vbInformation, "Saved Data"
Application.ScreenUpdating = True