bonjour


est-il possible d'excute une code vb avec js

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
 
Dim xlApp
Dim wk
Set XlApp = CreateObject("Excel.Application")
XlAPP.visible =1
Set wk = xlAPP.Workbooks.Open("C:\Users\a.bouchebkat\Desktop")
xlAPP.run "MaMacro( ""lancementUSF"")"

j'ai deja utiliser mais aucun resultat

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
    <script language="VBScript"> 
   function clickMe() { 
Dim xlApp
Dim wk
Set XlApp = CreateObject("Excel.Application")
XlAPP.visible =1
Set wk = xlAPP.Workbooks.Open("C:\Users\a.bouchebkat\Desktop\NOuveau PrOjet.xlsm")
xlAPP.run "MaMacro( ""lancementUSF"")" 
   } 
 	</script>  
<input name="ma macro" type="button" value="macro" onclick="clickMe()" />

merci pour vous reponses