Quantcast
Channel: SCN : Discussion List - SAP PowerBuilder
Viewing all articles
Browse latest Browse all 286

Saving a sheet in excel work book as txt file.

$
0
0

I am trying to save a specific sheet, for example sheet#3 of an Excel worksheet to a tab delimited txt file in PowerBuild 12.0 using OLE Object. 

 

The code I used: myoleobject.ActiveWorkbook.SaveAs(lsFileNameTxt, -4158)  saved a different sheet than #3.

 

When I tried other methods such as myoleobject.ActiveSheet.SaveAs(lsFileNameTxt, -4158), or myoleobject.Application.WorkBooks(1).WorkSheets(liIdx_DataSheet).SaveAs(lsFileNameTxt, -4158), I got errors.

Please help...

 

Thanks, Ping


Viewing all articles
Browse latest Browse all 286

Trending Articles



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