Quantcast
Channel: PTC Community : Discussion List - PTC Mathcad
Viewing all articles
Browse latest Browse all 2936

WRITEEXCEL (Mathcad Prime 3.1)

$
0
0

Hello all,

 

I can get Mathcad Prime to create an excel file and write output to "Sheet1" "Sheet2" or "Sheet3" by using the WRITEEXCEL function, i.e:

 

write:=WRITEEXCEL(out.xlsx,MatrixA,1,1,"Sheet1!A1")

write:=WRITEEXCEL(out.xlsx,MatrixB,1,1,"Sheet2!A1")

write:=WRITEEXCEL(out.xlsx,MatrixC,1,1,"Sheet3!A1")

 

But if I create a custom sheet name such as "output!A1" or even "Sheet4!A1" it does not work unless I first open the excel file and create a sheet with that name, afterwards I can then run the function in mathcad and it will write output to that custom named sheet. This is not an ideal solution however! Is this a know limitiation of the WRITEEXCEL() function and is there some work-around so that I dont have to go and manually create sheets in the excel file?


Viewing all articles
Browse latest Browse all 2936

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>