Eliminar columna de Excel a través de Automatización
Visual Fox Pro, Trucos Comentarios ( 0 ) »#Define xlShiftDown -4121
#Define xlShiftToLeft -4159
#Define xlShiftToRight -4161
#Define xlShiftUp -4162
oExcel = Createobject("Excel.Application")
oExcel.Visible= .T.
oBook = oExcel.WorkBooks.Add
oExcel.Cells(1,1).Value= "A"
oExcel.Cells(1,2).Value=
"B"
oExcel.Cells(1,3).Value= "C"
oExcel.Cells(1,4).Value= "D"
oExcel.Cells(1,5).Value= "E"
oBook.ActiveSheet.Columns("C:C").Select
* oBook.ActiveSheet.Columns("C:AB").Select
oExcel.Selection.Delete(xlShiftToLeft)
oExcel.Quit()
oExcel = Null
Por: David Amador T