Skip to content

Instantly share code, notes, and snippets.

@ndthanh
Created February 19, 2017 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndthanh/9c8668b9fdced993008384085b2a59e5 to your computer and use it in GitHub Desktop.
Save ndthanh/9c8668b9fdced993008384085b2a59e5 to your computer and use it in GitHub Desktop.
Sub Sample()
Dim Ret
Ret = IsWorkBookOpen("C:\hocexcelonline.xlsx")
If Ret = True Then
MsgBox "File is open"
Else
MsgBox "File is Closed"
End If
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment