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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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,224,020
Messages
6,175,967
Members
452,691
Latest member
Tony_Almeida

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