I'm using PB 12.5 build 2511, Win7 professional, Excel 2010
I'm trying to capture a list of Excel files, and READ the data in each of the cells.
the programming is as follows:
for loopCounter = 1 to fileNameCount
create nvo_ole //create an nvo that has the Excel calls
nvo_ole.io_ole = Create OleObject
io_ole.ConnectToNewObject( "Excel.Application")
io_ole.ConnectToObject( path_and_file_name ) // pass in the path and file name
// do some processing // this part works as expected for the FIRST file
nvo_ole.io_ole.DisconnectObject ( )
destroy nvo_ole
next
when the loop tries to process the second file, the data is not correct. it's ALWAYS the data from the first file.
I tried recreating and destroying the nvo object as a last resort.
Ideally, I would like to create the nvo once, "clear" the data in the object, connect the next file, and continue the processing.