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.
Code :
- 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 suppose qu'il faut rajouter un paramètre, mais lequel ???
merci d'avance