Hello,
I was trying to make different files active at a different time. To be more specific, i want to make .ipf file(window) active after certain time my macro has started and Change it later again. I mean, I want to see my .ipf file as a active window for a certain period of time and later back to my original .pem file. How can i achieve this. I tried different methods from help section but i could not achieve the required result.
Thank you in Advance.
Change of Active Window
-
- Sales & Support
- Posts: 1083
- Joined: Fri 20. Sep 2019, 13:31
Re: Change of Active Window
Hello Krishna,
You can try the following example, if your document is open you can do this:
Where "YourExampleDocument.Doc" is the name of the document you want to switch to.
So, first switch to the desired .ipf and after X seconds (You could use the "Wait" function) switch back to your .pem.
Best Regards
Marvin
You can try the following example, if your document is open you can do this:
Code: Select all
Sub IsActiveExample()
Dim myDocument
Set MyDocument = Documents("YourExampleDocument.Doc")
myDocument.ActiveWindow.IsActive = True
End Sub
So, first switch to the desired .ipf and after X seconds (You could use the "Wait" function) switch back to your .pem.
Best Regards
Marvin
---
Marvin Heidemann
PEAK-Support Team
Marvin Heidemann
PEAK-Support Team