VB : ligne fausse

bibi_fricotin -  
 euh -
Bonjour,
Sauriez-vous ce qui ne va pas sur cette ligne de VB :
application.StatusBar = "Now working on " & workfile workbooks.Open Filename:=myPath & workfile
merci

3 réponses

  1. bibi_fricotin
     
    il manquait ça à mon message :
    myPath = "C:\data\g8_\fdp"
    workfile = Dir(myPath & "*.xls")
    apparemment il manque qq chose à workbooks
    0
  2. euh
     
    myPath = "C:\data\g8_\fdp\"
    ça devrait aller mieux ..
    @+
    0
    1. bibi_fricotin
       
      c'est vrai qu'il manquait "\" mais c'est pas mieux , il manque le fin d'instruction
      merci
      0
  3. euh
     
    application.StatusBar = "Now working on " & workfile workbooks.Open Filename:=myPath & workfile
    et c'est censé faire quoi ça ?
    car ":=" et "workfile workbooks"
    ce n'est pas une syntaxe valide en VB.
    @+
    0