VB : ligne fausse
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
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
-
il manquait ça à mon message :
myPath = "C:\data\g8_\fdp"
workfile = Dir(myPath & "*.xls")
apparemment il manque qq chose à workbooks -
myPath = "C:\data\g8_\fdp\"
ça devrait aller mieux ..
@+ -
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.
@+