Coucou le forum,
Je n'arrive pas à combiner ceci:
Avec ceci:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 Set wk = Workbooks.Add wk.SaveAs "C:\Documents and Settings\Chewi\Desktop\C4\" & ComboBox1 & " - " & TextBox1 & " - " & ComboBox2 & ".xls"
Code : Sélectionner tout - Visualiser dans une fenêtre à part Worbooks.Add Template:= _ "C:\Documents and Settings\Chewi\Application Data\Microsoft\Modèles\2chC4.xlt"
Erreur : ("Expected: end of statement"), comment faire?
Ceci ne fonctionne pas:
Où est le problème ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 Set wk = Workbooks.Add Template:= _ "C:\Documents and Settings\Chewi\Application Data\Microsoft\Modèles\2chC4.xlt" wk.SaveAs "C:\Documents and Settings\Chewi\Desktop\C4\" & ComboBox1 & " - " & TextBox1 & " - " & ComboBox2 & ".xls"
Et comment faire?
Merci à vous.
Partager