How to run a PowerPoint macro (calling other macros), using AHK?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
New Bee
Posts: 5
Joined: 19 Oct 2022, 19:42

How to run a PowerPoint macro (calling other macros), using AHK?

Post by New Bee » 23 Nov 2022, 20:11

Can you help me how to use AHK to run a PowerPoint macro which include "call other macros"?

For example,

Code: Select all

Sub fit()
Dim sTopLimit As Long
Dim sMaxHeight As Single
Dim sMaxWidth As Single
Dim sSlideHeight As Single
Dim sObjectHeight As Single


Call a1_FitWidth
Call mid
With ActiveWindow.Selection.ShapeRange
sMaxHeight = .Height
sSlideHeight = ActivePresentation.PageSetup.SlideHeight
If sMaxHeight > sSlideHeight Then
Call a3_FitHeight

End If
End With


End Sub
[Mod edit: Added codebox.]

Return to “Ask for Help (v1)”