Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Import an Excel worksheet with unknown columns
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00344801
Message ID:
00344848
Vues:
16
oexcel=create('excel.application')
with oexcel
.visible = .t.
.workbooks.open(getf('xls'))
.Range("A1:B1").Select
.Selection.SpecialCells(11).Select
.ActiveWorkbook.SaveAs('abc.xls',1)
endwith
this code will give you the ability to select the entire contents of the active workbook. You could also just use a macro and run it after instancing the workbook with oexcel.run('mymacro').
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform