Is there any way to prevent pssexcel from closing excel

asked 2013-05-22 08:50:57 -0600

anonymous user

Anonymous

updated 2013-05-22 08:52:40 -0600

I am running a couple of macros off of excel.

These macros then launch batch files which run python macros, who in turn convert PV results to excel using the pssexcel function.

However, once I Import pssexcel, it closes all of the excel sheets that are already open, and as such I cant copy the PV results onto the output spreadsheet.

Any Ideas?

edit retag flag offensive close merge delete

Comments

Sounds like a pretty complicated system. Try importing `excelpy` does it also close all your Excel sheets?

JervisW gravatar imageJervisW ( 2013-05-23 08:51:41 -0600 )edit

I just did. And it does not close excel. However, how do I have excelpy print my PV results automatically. With pssexcel I can use this line to print the results so I do can analyze the results automatically in excel and then print the results of the analysis.

Pyfoon gravatar imagePyfoon ( 2013-05-23 09:02:53 -0600 )edit

ran out of space above pssexcel.pv(pvOutputFile,string,colabel=colabel,xlsfile=xlsfile,sheet=sheet,overwritesheet=overwritesheet)

Pyfoon gravatar imagePyfoon ( 2013-05-23 09:03:11 -0600 )edit

Ok, can you try one more thing. What about importing `pssexceluserin` Does that shut down the sheets too? I ask because I can't see anything that would shut the sheets in the `pssexcel.py` file.

JervisW gravatar imageJervisW ( 2013-05-23 09:14:34 -0600 )edit

Nope, pssexceluserin does not shut down the sheets. Just to confirm, I created a new file with a single line "import pssexcel" and ran it in PSSE with a single file open in excel, and it closed excel. I repeated the same single line file with pssexceluserin and excelpy and excel stayed open.

Pyfoon gravatar imagePyfoon ( 2013-05-23 09:52:57 -0600 )edit