作者在 2015-04-01 00:18:44 发布以下内容
FileName=GetFile("Xls")
If Empty(FileName)
Return
EndIf
oExcel=CreateObject('Excel.application')
oExcel.Workbooks.Open(FileName)
oExcel.SHEETS(1).SELECT
*oExcel.Worksheets("sheet1").Activate
nPages=oExcel.ActiveSheet.HPageBreaks.Count+1
MessageBox(FileName+"共有 "+Transform(nPages)+" 页")
oExcel.Quit
RELEASE oExcel