Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
OEXCEL = CREATEOBJECT("Excel.Application")
* make excel visible during development
OEXCEL.VISIBLE = .T.
OEXCEL.WORKBOOKS.ADD
OEXCEL.DISPLAYALERTS = .F.
OEXCEL.CELLS(1,1).SELECT
OEXCEL.ActiveWorkBook.Sheets.Add
OEXCEL.ACTIVEWORKBOOK.SAVEAS("c:\myfolderxmyfile.xls", -4143)
OEXCEL.QUIT
RELEASE OEXCEL
PRIVATE MyRow
OEXCEL = CREATEOBJECT("Excel.Application")
* make excel visible during development
OEXCEL.VISIBLE = .T.
OEXCEL.WORKBOOKS.ADD
OEXCEL.DISPLAYALERTS = .F.
SELECT myTableA
GO top
OEXCEL.SHEETS(1).SELECT
MyRow = 1
DO WHILE .not. EOF()
OEXCEL.CELLS(MyRow,1).Value = myTableA.Field1
OEXCEL.CELLS(MyRow,2).Value = myTableA.Field2
OEXCEL.CELLS(MyRow,3).Value = myTableA.Field3
OEXCEL.CELLS(MyRow,4).Value = myTableA.Field4
OEXCEL.CELLS(MyRow,5).Value = myTableA.Field5
OEXCEL.CELLS(MyRow,6).Value = myTableA.Field6
MyRow = MyRow +1
SKIP
ENDDO
OEXCEL.ActiveWorkBook.Sheets.Add && adds new sheet
OEXCEL.SHEETS(2).SELECT
MyRow = 1
SELECT myTableB
GO top
DO WHILE .not. EOF()
OEXCEL.CELLS(MyRow,1).Value = myTableB.Field1
OEXCEL.CELLS(MyRow,2).Value = myTableB.Field2
OEXCEL.CELLS(MyRow,3).Value = myTableB.Field3
OEXCEL.CELLS(MyRow,4).Value = myTableB.Field4
OEXCEL.CELLS(MyRow,5).Value = myTableB.Field5
OEXCEL.CELLS(MyRow,6).Value = myTableB.Field6
MyRow = MyRow +1
SKIP
ENDDO
OEXCEL.ActiveWorkBook.Sheets.Add && adds new sheet
OEXCEL.SHEETS(3).SELECT
MyRow = 1
SELECT myTableC
GO top
DO WHILE .not. EOF()
OEXCEL.CELLS(MyRow,1).Value = myTableC.Field1
OEXCEL.CELLS(MyRow,2).Value = myTableC.Field2
OEXCEL.CELLS(MyRow,3).Value = myTableC.Field3
OEXCEL.CELLS(MyRow,4).Value = myTableC.Field4
OEXCEL.CELLS(MyRow,5).Value = myTableC.Field5
OEXCEL.CELLS(MyRow,6).Value = myTableC.Field6
MyRow = MyRow +1
SKIP
ENDDO
OEXCEL.CELLS(MyRow,6).SELECT
OEXCEL.Selection.NumberFormat = "d-mmm-yy"
please tell me that where I collect All Formatting commands like "OEXCEL.Selection.NumberFormat = "d-mmm-yy" "