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.
Excel's Macro Recorder. For those who cannot write VBA code, has a built-in Macro Recorder that allows you to record a series of steps - using keyboard and mouse - that Excel then converts into VBA code for you. Like the VBA editor mentioned above, the Macro Recorder is located on the Developers tab of the Ribbon. By default in Excel, the Developer tab is not present on the Ribbon. To add it: Click the File tab to open the drop down list of options. On the drop down list, click Options to open the Excel Options dialog box.