Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combining XLS files into one workbook
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01035967
Message ID:
01102332
Vues:
17
>>You can use SaveAs() to save to new file or you can start with new Workbook..
>>
>>>Great code. But as I see in yours and Craig examples, you add new sheets with the informaiton to the first file, e.g. modifying the first Excel file. I was wondering if it's possible to do the same using a new clean file as output and don't touch the files from array?
>
>SaveAs was giving me error :( The resulting code from Craig's procedure produced a file with new name, but the size was 1KB and it was somehow a reference to existing files, because when I deleted them, this new file could not be opened.
>
>I found another link searching UT threads
>http://www.portalfox.com/modules.php?op=modload&name=News&file=article&sid=1029&mode=nested&order=0&thold=0
>
>which I may take as a starting point.

SaveAs is to be used on the workbook and not the Excel application object...

Re: Excel spreadsheets to one workbook Thread #1101620 Message #1102331
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform