traveller4
Programmer
I am trying to load workbooks into a database that contain 5 required worksheets with distinct names
contract
contractorinfo
contractdetails
contractstatus
validuntil
These workbooks are supplied from outside sources. The problem is: not all the workbooks contain all 5 worksheets.
The load procedure is automated so it crashes when it encounters one of the workbooks with missing sheet(s).
My question is:
Is it possible to use the File Scripting Object to count worksheets in a workbook. If the count did not = 5 then I would copy it into a reject folder. If this is possible could someone point me in the right direction
Thanks in advance
contract
contractorinfo
contractdetails
contractstatus
validuntil
These workbooks are supplied from outside sources. The problem is: not all the workbooks contain all 5 worksheets.
The load procedure is automated so it crashes when it encounters one of the workbooks with missing sheet(s).
My question is:
Is it possible to use the File Scripting Object to count worksheets in a workbook. If the count did not = 5 then I would copy it into a reject folder. If this is possible could someone point me in the right direction
Thanks in advance