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:
00344853
Vues:
22
Awesome! Thanks John

>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 L. Miller
Logikos, Inc.
"Solutions With Software"
Tel: 979-826-6034
Fax: 979-826-8845
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform