I have a the following line of code that assigns a selected file in a list box to a variable.
FileToOpen = ListBox1.Value
I now need to assess the file name selected. If the first three letters of the file name are "Con" the i want to put "Sub" in cell S1. if the letters are not "CON" then i want to put "EE" in cell S1.
FileToOpen = ListBox1.Value
I now need to assess the file name selected. If the first three letters of the file name are "Con" the i want to put "Sub" in cell S1. if the letters are not "CON" then i want to put "EE" in cell S1.