Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening an Excel Sheet Object
Message
De
23/07/1998 19:10:47
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Opening an Excel Sheet Object
Divers
Thread ID:
00120785
Message ID:
00120785
Vues:
49
Can someone tell me what is causing my open file code to fail with the error ' invalid object reference'

Private Sub Command1_Click()
Dim xl As Object

Set xl = CreateObject("Excel.Sheet")

xl.application.Visible = True
xl.application.open "c:\test.xls" 'valid file name
xl.Open "c:\temp.csv"


Set xl = Nothing
End Sub


Thank you
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform