Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to export the excel is not called book1?
Message
De
20/04/2011 02:28:49
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
How to export the excel is not called book1?
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01507874
Message ID:
01507874
Vues:
95
Hi all,
i write a export excel function, i want to exported the excel not call book1 , how can i do to change the excel file name ?
i mean change the Workbooks.name thank you ~~~
Dim XL As Excel.Application
Dim WB As Excel.Workbook
Dim Sheet As Excel.Worksheet



                XL = CreateObject("Excel.Application")
                XL.Visible = True

 

                WB = XL.Workbooks.Add
                Sheet = WB.ActiveSheet


XL.Visible = True

                XL.UserControl = True

                Sheet = Nothing

                WB = Nothing

                XL = Nothing
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform