Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening Excel spreadsheet
Message
 
À
16/08/2000 07:09:21
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00405394
Message ID:
00405425
Vues:
19
>What is the best way to open an Excel spreadsheet from within VB?
>
>I am using getobject which has worked fine up until now, but when the path of the xls file has a space in it, it just crashes on me.
>
>How do I do this correctly?

It works correctly!!! See this sample:
Private Sub Command1_Click()
Dim objX As Object

    Set objX = GetObject("d:\emoreau\test space\test.xls")
    objX.Application.Visible = True
    objX.Parent.Windows(1).Visible = True
End Sub
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform