Freedom Wall Poem by Alvinzor Flores

Freedom Wall



Sub KeepShared()
Dim sFile As String
Dim sMsg As String
Dim iUsers As Integer
Dim iAnswer As Integer

With ActiveWorkbook
If.MultiUserEditing Then
sFile =.Name
iAnswer = vbYes
iUsers = UBound(.UserStatus)
If iUsers > 1 Then
sMsg = sFile & ' is also open by ' & _
iUsers - 1 & ' other users: '
For x = 2 To iUsers
sMsg = sMsg & vbCrLf &.UserStatus(x,1)
Next
sMsg = sMsg & vbCrLf & vbCrLf & 'Proceed? '
iAnswer = MsgBox(sMsg, vbYesNo)
End If

If iAnswer = vbYes Then
.ExclusiveAccess
.SaveAs Filename: =sFile, AccessMode: =xlShared
End If
End If
End With
End Sub

Tuesday, July 28, 2015
Topic(s) of this poem: arthurian
COMMENTS OF THE POEM
READ THIS POEM IN OTHER LANGUAGES
Close
Error Success