ActiveWindow vs ActivePresentation. Is there the same, just other object type?

Jamualson

Board Regular
Joined
Feb 17, 2021
Messages
145
Office Version
  1. 2019
Platform
  1. Windows
Seems to me that a Presentation is in a window, so it's the ActivePresentation and ActiveWindow object at the same time. There can be no ActiveWindow object with 2 ActivePresentation object in them.

So these 2 objects refer to the same things, just gives different possibilites and properties to set. Is this correct?

Thank you very much
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I am assuming you are talking about PowerPoint here.

DocumentWindow is one class (ActiveWindow is a member of that class). Presentation is another class (ActivePresentation is a member of that class) that is associated with one or more DocumentWindow objects. These two objects have a relationship but do not refer to the same things. If you are editing a Presentation you can go to View, New Window and now the Presentation has two DocumentWindow objects. I have seen one situation in Excel where ActiveWorkbook is not in ActiveWindow.

If two objects have different "possibilities" (not really sure what you meant by that), different methods, and different properties, they are not the same object (unless we are talking about subclassing features of object-oriented languages that are generally lacking in VBA).
 
Upvote 0
Solution

Forum statistics

Threads
1,223,573
Messages
6,173,133
Members
452,501
Latest member
musallam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top