This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Function IsFileOpen(ByVal strFullPathFileName As String) As Boolean | |
' Attempting to open a file for ReadWrite that exists will fail | |
' if someone else has it open. We also have to guard against the | |
' errors that occur if the file has uncommon file attributes such as | |
' 'hidden' which can upset the Open statement. | |
' NOTE: any open that doesn't lock the file such as opening a .txt file | |
' in NotePad or a read-only file open will return False from this call. | |
Dim lngFile As Long |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Function IsWordDocument(ByVal strExtension As String) As Boolean | |
' Developed by Warren Bain on 01/04/2010 | |
' Copyright (c) Thought Croft Pty Ltd | |
' All rights reserved. | |
' Verifies if the supplied file extension e.g. "doc" | |
' is recognised as one of the documents that this version | |
' of Word can natively handle. List is constructed from the | |
' types of documents that can be filtered in the Open File dialog |
OlderNewer