Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to copy a cursor to a spreadsheet
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01175581
Message ID:
01203313
Vues:
27
>Cetin,
>
>I was wondering if I could ask you a question regarding the code above (great function to copy data from VFP to Excel, thank you!).
>
>When I run your code it opens Excel and copies the data to a spreadsheet. But if I wanted to creat this spreadsheet in a specific folder under a specific name and not to open the spreadsheet, is it possible? In this case, where do I need to make changes in your code?
>
>Thank you.

Just remove WorkSheets(1).Activate() and visible and add
.ActiveWorkBook.SaveAs(m.lcExcelFile) at the end.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform