How can I make the following VBA code case insensitve:
Set SF = Folders.SubFolders
For Each F1 In SF
If F1 = ThisWellPath & "\Deliverables" Then DelFolder = True
…
If the Deliverables folder is not spelled exactly as shown (as far as case is concerned), the program will not find the folder. I need code that can find a Deliverables folder regardless of case. (ie deliverables, or DELIVERABLES). Once I’ve determined that the folder exists, how can I use Chdir to change to that folder?
Thanks,
Paul Hudgens
Denver
phudgens@denver.oilfield.slb.com
Set SF = Folders.SubFolders
For Each F1 In SF
If F1 = ThisWellPath & "\Deliverables" Then DelFolder = True
…
If the Deliverables folder is not spelled exactly as shown (as far as case is concerned), the program will not find the folder. I need code that can find a Deliverables folder regardless of case. (ie deliverables, or DELIVERABLES). Once I’ve determined that the folder exists, how can I use Chdir to change to that folder?
Thanks,
Paul Hudgens
Denver
phudgens@denver.oilfield.slb.com