VBA-E

VBA-E - VB/VBA/VBS - Programmation

Marsh Posté le 28-04-2006 à 09:49:58    

Je ne suis pas un bon en programmation VBA sous Excel mais je m'essaye à quelques programmes pour mon boulot et je butte sur le problème suivant :
 
Dim fichier as string
fichier = InputBox("Entrez le nom du fichier" )
Workbooks.OpenText Filename:="Z: \ R & D \ Programmation VBA \ fichier"
 
Le chemin d'accès est bon mais il ne me reconnaît pas le nom du fichier qui est une variable. Tout est dans la syntaxe mais je ne trouve pas la solution.
 
Si quelqu'un peut m'aider
 
Merci d'avance

Reply

Marsh Posté le 28-04-2006 à 09:49:58   

Reply

Marsh Posté le 28-04-2006 à 09:54:59    

Salut!
Workbooks.OpenText Filename:="Z: \ R & D \ Programmation VBA \"&fichier
sa marche???

Reply

Marsh Posté le 28-04-2006 à 10:53:05    

Merci  
Impeccable

Reply

Marsh Posté le 28-04-2006 à 13:16:31    

Je t'en prie!
Bon dev'

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed