Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a new sheet in excel
Message
 
À
08/08/2006 07:05:57
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
01143725
Message ID:
01143746
Vues:
8
that worked perfectly, thanks Dorin
~M

>>hi all,
>>i am trying to add a new worksheet into an automation program using excel. everything works fine except that i need to add a sheet to the end. At the moment i have Sheet1, Sheet2, Sheet3 and if i add one more it becomes Sheet1, Sheet2, Sheet4, Sheet3 and so on. the excel help says add in a parameter move(after as varient) but i cannot get it to work.
>>OleApp.worksheets.Add
>>OleApp.Sheets(msheet).Select
>>OleApp.Sheets(msheet).Name = "Source"
>>any help much appreciated.
>
>
>OleApp.Worksheets.Add(.null.,OleApp.Worksheets.Item(3))
>
Go raibh maith agat

~M
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform