I've got a routine that successfully imports various data from an excel sheet.
But I'm having problems with the excel program being left loaded!
Currently I use this to shut it all down:
Anything wrong with that?
Its really annoying, excel wont even open manually/normally it flashes up then disappears.
Running the code again and again, sometimes reports RPC Automation errors
But I'm having problems with the excel program being left loaded!
Currently I use this to shut it all down:
Code:
Excel.Workbooks.Close
Excel.Application.Quit
Set wsSheet = Nothing
Set wsBHSheet = Nothing
Set wbExcel = Nothing
Its really annoying, excel wont even open manually/normally it flashes up then disappears.
Running the code again and again, sometimes reports RPC Automation errors