Hopefully a simple question. VBA macro on a toolbar in PowerPoint for Mac 2011. I create a new document based on a template, then want to manipulate the newly created window. The new document opens fine, but its window is NOT automatically the active window. I've tried to address newdeck.windows(1), application.windows(1), or application.windows(applic
, but none of them seems to work. How can I reliably identify the window just created with the new document?
Dim newdeck As Presentation
file2open = contentlibraryfolder & ":Templates:HPC Template.potx"
Set newdeck = Application.Presentations.Open(fileName:=file2open, Untitled:=msoTrue)
'HERE IS WHERE I AM ASSUMING THE NEWEST CREATED WINDOW (NEWDECK) SHOULD BE THE ACTIVEWINDOW, BUT NOT SO
ActiveWindow.ViewType = ppViewNormal
ActiveWindow.View.Zoom = 100
ActiveWindow.WindowState = ppWindowMaximized