The pronoun them clearly refers to the noun disks. Disks is the antecedent for the pronoun them. Unfortunately, it is very easy to create a sentence that uses a pronoun WITHOUT a clear, unmistakable noun antecedent. Look at this example: The pronoun it does not have a clear noun antecedent. As a result, the reader cannot know for sure whether Kara sold the disk or the cabinet. The pronoun reference is faulty here because the pronoun it has two antecedents. Such errors, called FAULTY or VAGUE PRONOUN REFERENCE, can confuse readers and obscure the intended meaning.
How to extract file name from FullPath string using VBA. Extract Name of the File from Path / Fullname using VBA. There are many methods to extract the filename from a given string. You can use FileSystemObject's function GetFileName or can use Arrays to get the last element of the array split by path separator. Here we use even simpler functions like Dir and InStrRev to achieve the same.
Attached is a zip file of a VB6 project that contains a form and a module. In the module there is a function GetUserNameForFile which I use to find out the user name of the individual who has a file open, if any.Although it's a VB6 project, there's no reason why the module can't be copied into a VBA project.ttached is a zip file of a VB6 project that contains a form and a module. In the module there is a function GetUserNameForFile which I use to find out the user name of the individual who has a file open, if any.