A
Art MacNeil
Hello,
I'm trying to extract some specific text from a bunch of strings of text.
I think this should be really easy but I can't get it done. I've used "Left"
"Mid", "Substitute" and "Find" in one combination of another and sometimes
it works but it doesn't always work.
Regardless of the path, what I need is, the string of text after the final
"\" and before the ".xls"
I've copied a sample of the strings I'm working with below.
C:\Source\qa\T P 2006\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Federal\5 year compare\5yearscomparePF.xls
C:\Source\qa\T P 2006\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Federal\CCA\CCA Line 1 to 2475.xls
C:\Source\qa\T P 2006\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Federal\CCA\CCA Lines 2475 & down.xls
C:\Source\qa\T P 2006\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Federal\RRSP Deduction pf\RRSP Deduction PF.xls
E:\T Ps\T P 2007\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Federal\5 year compare pf.xls
E:\T Ps\T P 2007\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Federal\CCA Line 1 to 2475.xls
E:\T Ps\T P 2007\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Federal\CCA Lines 2475 & down.xls
E:\T Ps\T P 2007\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Federal\RRSP Deduction pf.xls
C:\Source\qa\T P 2006\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Québec\Annexe A\Annexe A T P.xls
C:\Source\qa\T P 2006\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Québec\LSVCC\LSVCC (Québec) T P.xls
C:\Source\qa\T P 2006\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Québec\QVEH-B\QVEH-B series T P.xls
C:\Source\qa\T P 2006\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Québec\TP1-Comparative_Summary\TP1_Comparative_TAXSUMMARY_PF.xls
E:\T Ps\T P 2007\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Québec\Annexe A.xls
E:\T Ps\T P 2007\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Québec\LSVCC (Québec).xls
E:\T Ps\T P 2007\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Québec\QVEH B.xls
E:\T Ps\T P 2007\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Québec\TP1 Comp Summary pf.xls
The Text I need is:
5yearscomparePF
CCA Line 1 to 2475
CCA Lines 2475 & down
RRSP Deduction PF
5 year compare pf
CCA Line 1 to 2475
CCA Lines 2475 & down
RRSP Deduction pf
Annexe A T P
LSVCC (Québec) T P
QVEH-B series T P
TP1_Comparative_TAXSUMMARY_PF
Annexe A
LSVCC (Québec)
QVEH B
TP1 Comp Summary pf
Thank you for your help,
Art.
I'm trying to extract some specific text from a bunch of strings of text.
I think this should be really easy but I can't get it done. I've used "Left"
"Mid", "Substitute" and "Find" in one combination of another and sometimes
it works but it doesn't always work.
Regardless of the path, what I need is, the string of text after the final
"\" and before the ".xls"
I've copied a sample of the strings I'm working with below.
C:\Source\qa\T P 2006\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Federal\5 year compare\5yearscomparePF.xls
C:\Source\qa\T P 2006\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Federal\CCA\CCA Line 1 to 2475.xls
C:\Source\qa\T P 2006\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Federal\CCA\CCA Lines 2475 & down.xls
C:\Source\qa\T P 2006\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Federal\RRSP Deduction pf\RRSP Deduction PF.xls
E:\T Ps\T P 2007\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Federal\5 year compare pf.xls
E:\T Ps\T P 2007\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Federal\CCA Line 1 to 2475.xls
E:\T Ps\T P 2007\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Federal\CCA Lines 2475 & down.xls
E:\T Ps\T P 2007\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Federal\RRSP Deduction pf.xls
C:\Source\qa\T P 2006\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Québec\Annexe A\Annexe A T P.xls
C:\Source\qa\T P 2006\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Québec\LSVCC\LSVCC (Québec) T P.xls
C:\Source\qa\T P 2006\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Québec\QVEH-B\QVEH-B series T P.xls
C:\Source\qa\T P 2006\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Québec\TP1-Comparative_Summary\TP1_Comparative_TAXSUMMARY_PF.xls
E:\T Ps\T P 2007\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Québec\Annexe A.xls
E:\T Ps\T P 2007\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Québec\LSVCC (Québec).xls
E:\T Ps\T P 2007\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Québec\QVEH B.xls
E:\T Ps\T P 2007\QT, IR, QTW, IRW\Tax Components\Calculation
Testing\Québec\TP1 Comp Summary pf.xls
The Text I need is:
5yearscomparePF
CCA Line 1 to 2475
CCA Lines 2475 & down
RRSP Deduction PF
5 year compare pf
CCA Line 1 to 2475
CCA Lines 2475 & down
RRSP Deduction pf
Annexe A T P
LSVCC (Québec) T P
QVEH-B series T P
TP1_Comparative_TAXSUMMARY_PF
Annexe A
LSVCC (Québec)
QVEH B
TP1 Comp Summary pf
Thank you for your help,
Art.