[..] Cherche l'équivalent de la fonction Func _Excel_BookOpen en PowerPoint

Aide et conseils concernant AutoIt et ses outils.
Règles du forum
.
Répondre
Mehdi350
Niveau 1
Niveau 1
Messages : 9
Enregistré le : lun. 04 févr. 2019 11:15
Localisation : Maroc
Status : Hors ligne

[..] Cherche l'équivalent de la fonction Func _Excel_BookOpen en PowerPoint

#1

Message par Mehdi350 »

bonjour,
merci bien pour ce Form
dans le dossier INCLUDE d'AUTOIT j'ai trouvé la fonction AUTOIT d'Excel .

Code : Tout sélectionner

Func _Excel_BookOpen($oExcel, $sFilePath, $bReadOnly = Default, $bVisible =
Default, $sPassword = Default, $sWritePassword = Default, $bUpdateLinks =
Default)
; Error handler, automatic cleanup at end of function
Local $oError = ObjEvent("AutoIt.Error", "__Excel_COMErrFunc")
#forceref $oError
If Not IsObj($oExcel) Or ObjName($oExcel, 1) <> "_Application" Then Return
SetError(1, @error, 0)
If StringLeft($sFilePath, "HTTP") = 0 And Not FileExists($sFilePath) Then
Return SetError(2, 0, 0)
If $bReadOnly = Default Then $bReadOnly = False
If $bVisible = Default Then $bVisible = True
Local $oWorkbook = $oExcel.Workbooks.Open($sFilePath, $bUpdateLinks,
$bReadOnly, Default, $sPassword, $sWritePassword)
If @error Then Return SetError(3, @error, 0)
Local $oWindow = $oExcel.Windows($oWorkbook.Name)
If IsObj($oWindow) Then $oWindow.Visible = $bVisible
; If a read-write workbook was opened read-only then set @extended = 1
If $bReadOnly = False And $oWorkbook.Readonly = True Then Return
SetError(0, 1, $oWorkbook)
Return $oWorkbook
EndFunc   ;==>_Excel_BookOpen
S'il vous plait , je cherche l'équivalent de cette fonction en PowerPoint
Func _PowerPoint_BookOpen($oPowerPoint.....) ?
merci
Répondre