1 pièce(s) jointe(s)
VBA office 365 appel powershell
Bonjour,
j'ai une macro qui appelle un script powershell.
malheureusement depuis que j'ai changé de poste, celui-ci est bloqué par excel comme ligne de code malveillante.
Pièce jointe 590749
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Sub ActualiserTableauNomenclature()
'Call powershell and run scripts
'Call Shell("powershell -file ""D:\_Developpements\PowerShell\Scripts Fonctionnels\Extraction_Nomenclature.ps1""", 1)
'
'Sleep 30000
Call Shell("powershell -noexit -file ""D:\_Developpements\PowerShell\1_Scripts en production\Extraction_Nomenclature.ps1", vbminimizefocus)
Sleep 30000 |
je pense qu'il faut que je rajoute un paramètre mais je ne sais pas lequel.
merci pour votre aide !