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.
If you want to use a UDF in more than one workbook, you can save your functions in your own custom add-in. Simply save your excel file that contains your VBA functions as an add-in file (.xla for Excel 2003 or .xlam for Excel 2007+). Then load the add-in (for Excel 2003 or for Excel 2010+).